vilas kumar wrote:
> How do I do it when I an programming in C in UNIX environment. In other
> words, can anybody
> tell me how to send an 8 bit binary data to port 0x378 using an ANSI C
do man outb
>
> program? A sample code would be very useful.
do this :
linux_prompt>apropos port | grep -i read
linux_prompt>apropos port | grep -i write
another way is you do a read/write call which talk with device driver specific
read/write calls
for eg. you have to write to a printer.
you use the write (to device)....before that you open the device by open (
device ) system call
or use the magic of ioctl system call.
-gaurav.
--
_
|^|^| -^- Love to Linux
\-/ G A U R A V |
mailto:[EMAIL PROTECTED] / mailto:[EMAIL PROTECTED]
| Sea/She is nature's art/\/ Everybody likes to get the feel of it
|-=-----------------------/-----------------------------------------|
|_|f I can I m a g i n/e it I can A c h i e v e it_._.-.-._.|
-----------------------------------------------------------------------
For information on this and other Linux India mailing lists check out
http://lists.linux-india.org/