LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-04-2004, 07:49 AM   #1
sidbash
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Unhappy writing printer device driver in linux


hi ! i am a student of system programming course. I am making a device driver for printer in linux using C language. So far i only know that i have to use 'outb' and 'inb' functions for accessing port. I am quite confused now and dont know what to do next??? I need guidance for making the device driver. PLZ, plz tell me from the begining, where to start making it. Can anybody help???
 
Old 07-04-2004, 12:08 PM   #2
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
http://www.beyondlogic.org/spp/parallel.htm
 
Old 07-04-2004, 09:25 PM   #3
sidbash
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Unhappy still facing problems

hi! i am sidbash again. I think u have tried to help me out. The web page on parallel port is no doubt good, but unfortunately i have read it before. Sir the problem is, i dont know what steps i should follow in order to program the device driver. So far i am able to send some data to the printer. The printer recieves the characters i send, but prints them not completely. If u want i can send u the code, kindly solve this problem. May God bless u!!!!
 
Old 07-04-2004, 11:16 PM   #4
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
well have u looked at the source for the lp driver yet? [/drivers/char/lp.c] i've never written a driver for a printer, but if i was going to, that is where i would start. i know that the parallel printer driver is layered, ie it utilizes the parport module to actually perform the low level i/o, and it just worries about managing the printer. the parport driver can be found in [/drivers/parport/parport_pc.c].
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing Device Driver... okeyla Programming 3 05-18-2005 07:41 AM
Need help in writing device driver eshwar_ind Programming 1 02-07-2004 03:46 PM
Quick and easy solution for writing a linux device driver? mr_segfault Programming 5 01-08-2004 10:45 PM
Device Driver Writing Red Hat 8 & 9 unicorn21 Red Hat 2 12-14-2003 03:01 AM
writing a config file for a device driver britneykiller Programming 0 03-08-2002 08:22 AM


All times are GMT -5. The time now is 12:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration