Sponsored Content
Operating Systems SCO Any device driver sample for SCO ?! Post 302504878 by k.a.docpp on Tuesday 15th of March 2011 04:41:53 PM
Old 03-15-2011
Any device driver sample for SCO ?!

Hi
I'm looking for a simple and nice sample for writing a device driver in SCO OpenServer 5.0.7. I'm asked to write a device driver for some usb printer. I have already the linux version of the driver but it won't get compiled. I have some basic knowledge of device drivers phenomena such as kernel space , user space , devices , kernel linking , Driver.c and Driver.o , etc.

Please help Smilie Smilie

---------- Post updated at 03:41 PM ---------- Previous update was at 03:33 PM ----------

Guys
There's a sample for a parallel port device driver written by Anthony Lawrence , but I can't compile it under my SCO. My SCO is a demo version installed on a VMware virtual machine. There is some 'u' variable i can't understad what it is.

You can find it here.
aplawrence.com/Unix/driver.html

Thnx.
 

4 More Discussions You Might Find Interesting

1. Solaris

SUNWglmr -- rasctrl environment monitoring driver for i2c or SCSI device driver ?

I've been researching minimizeing Solaris 8 and found that on the web page http://www.sun.com/bigadmin/content/packagelist/s8u7PkgList/p2.html the package SUNWglmr is listed as "rasctrl environment monitoring driver for i2c, (Root) (32-bit)" while in the document "Solaris 8 minimize-updt1.pdf"... (1 Reply)
Discussion started by: roygoodwin
1 Replies

2. UNIX for Advanced & Expert Users

help regarding device driver

Hi All, I have a device driver that uses UARTserial port to write/read to-from a device. That device driver is working fine on FC3 machine( kernel version 2.6.12)... Now I am switching to FC9 (kernel version 2.6.25.11-97).I have changed the interrupt flag SA_INTERRUPT to IRQF_DISABLED... (0 Replies)
Discussion started by: rajuprade
0 Replies

3. Programming

regarding device driver

Hi All, I have a device driver that uses UARTserial port to write/read to-from a device. That device driver is working fine on FC3 machine( kernel version 2.6.12)... Now I am switching to FC9 (kernel version 2.6.25.11-97).I have changed the interrupt flag SA_INTERRUPT to IRQF_DISABLED... (0 Replies)
Discussion started by: rajuprade
0 Replies

4. UNIX for Advanced & Expert Users

SCSI Command Sample Driver

Can anybody get me some sample driver code of linux block drivers to send request to scsi disks? Basically I need a sample code of linux scsi block driver. I tried googling for sample code but did not find it. (1 Reply)
Discussion started by: rupeshkp728
1 Replies
LPT(4)							   BSD Kernel Interfaces Manual 						    LPT(4)

NAME
lpt -- generic printer device driver SYNOPSIS
device ppc device ppbus device lpt DESCRIPTION
The current lpt driver is the port of the original lpt driver to the ppbus(4) system. One purpose of this port was to allow parallel port sharing with other parallel devices. Secondly, inb()/outb() calls have been replaced by ppbus function calls. lpt is now arch-independent thanks to the ppbus interface. See ppbus(4) for more info about the ppbus system. The parallel port bus is allocated by lpt when the printer device is opened and released only when the transfer is completed: either when the device is closed or when the entire buffer is sent in interrupt driven mode. The driver can be configured to be either interrupt-driven, or to poll the printer. Ports that are configured to be interrupt-driven can be switched to polled mode by using the lptcontrol(8) command. Depending on your hardware, extended capabilities may be configured with the lptcontrol(8) command. With an ECP/ISA port, you can take advantage of FIFO and DMA. In order to retrieve printer info from /dev/lpt0, just apply the cat command to the device. If the printer supports IEEE1284 nibble mode and has data to send to the host, you will get it. FILES
/dev/lpt0 first parallel port driver SEE ALSO
ppbus(4), ppc(4), lptcontrol(8) HISTORY
This driver replaces the functionality of the lpa driver, which is now defunct. BUGS
There are lots of them, especially in cheap parallel port implementations. It is only possible to open a lpt port when a printer is connected and on-line, making it impossible to run lptcontrol(8) when there is no printer connected. This driver could still stand a rewrite. BSD
February 14, 1999 BSD
All times are GMT -4. The time now is 05:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy