Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

parport_register_port(9) [centos man page]

PARPORT_REGISTER_POR(9) 				       Parallel Port Devices					   PARPORT_REGISTER_POR(9)

parport_register_port - register a parallel port SYNOPSIS
struct parport * parport_register_port(unsigned long base, int irq, int dma, struct parport_operations * ops); ARGUMENTS
base base I/O address irq IRQ line dma DMA channel ops pointer to the port driver's port operations structure DESCRIPTION
When a parallel port (lowlevel) driver finds a port that should be made available to parallel port device drivers, it should call parport_register_port. The base, irq, and dma parameters are for the convenience of port drivers, and for ports where they aren't meaningful needn't be set to anything special. They can be altered afterwards by adjusting the relevant members of the parport structure that is returned and represents the port. They should not be tampered with after calling parport_announce_port, however. If there are parallel port device drivers in the system that have registered themselves using parport_register_driver, they are not told about the port at this time; that is done by parport_announce_port. The ops structure is allocated by the caller, and must not be deallocated before calling parport_remove_port. If there is no memory to allocate a new parport structure, this function will return NULL. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 PARPORT_REGISTER_POR(9)

Check Out this Related Man Page

IEEE1284_DATA(3)						     Functions							  IEEE1284_DATA(3)

ieee1284_read_data, ieee1284_write_data, ieee1284_data_dir, ieee1284_wait_data - control the data lines SYNOPSIS
#include <ieee1284.h> int ieee1284_read_data(struct parport *port); void ieee1284_write_data(struct parport *port, unsigned char dt); int ieee1284_data_dir(struct parport *port, int reverse); int ieee1284_wait_data(struct parport *port, unsigned char mask, unsigned char val, struct timeval *timeout); DESCRIPTION
These functions manipulate the data lines of the parallel port associated with port (which must have been claimed using ieee1284_claim(3)). The lines are represented by an 8-bit number (one line per bit) and a direction. The data lines are driven as a group; they may be all host-driven (forward direction) or not (reverse direction). When the peripheral is driving them the host must not. For ieee1284_data_dir the reverse parameter should be zero to turn the data line drivers on and non-zero to turn them off. Some port types may be unable to switch off the data line drivers. Setting the data lines may have side effects on some port types (for example, some Amiga ports pulse nStrobe). ieee1284_wait_data waits, up until the timeout, for the data bits specified in mask to have the corresponding values in val. RETURN VALUE
ieee1284_read_data returns the 8-bit number representing the data lines unless it is not possible to return such a value with this port type, in which case it returns an error code. Possible error codes: E1284_NOTAVAIL Bi-directional data lines are not available on this system. E1284_INVALIDPORT The port parameter is invalid (perhaps it has not been claimed, for instance). E1284_SYS There was an error at the operating system level, and errno has been set accordingly. E1284_TIMEDOUT The timeout has elapsed. Whereas ieee1284_read_data may return E1284_NOTAVAIL on its first invocation on the port, if it does not do so then it cannot until ieee1284_close is called for that port. AUTHOR
Tim Waugh <> Author. COPYRIGHT
Copyright (C) 2001-2003 Tim Waugh [FIXME: source] 06/17/2014 IEEE1284_DATA(3)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers


where can i find the i/o and irq's in mandrake 8 help lost :D (2 Replies)
Discussion started by: RYRY46D9
2 Replies

2. UNIX for Advanced & Expert Users

I'm sure this is inposible!!

Here is response from HP-s support service: """ I understand that you need information, whether you can use your CD-Writer on parallel port with HP-UX 11.00 Operating system and you need compatible software for creating CDs. HP does not support the HP CD-Writer parallel port on... (1 Reply)
Discussion started by: HrnjicaMujo
1 Replies

3. Filesystems, Disks and Memory

Parallel Port info?

is there a command so that i can se info about the parallel port, if there isn't a specific command for that is there a command so i can se info about the system and all ports and devices? Thanx /Nick (2 Replies)
Discussion started by: sajjan2
2 Replies

4. Programming

parallel port proramming for sun ultra

Hi I'm trying to look for information about reading/writing to the parallel port of a Sun Ultra 5 running Solaris 8. I'd just like to see some basic programs written in C, nothing fancy, just reading and wrting to the port, getting the port address etc. toggling the lines. I've tried searching... (2 Replies)
Discussion started by: fishman2001
2 Replies

5. UNIX for Advanced & Expert Users

Hardware and drivers

Dear All Can somebody help me how H/W and H/W drivers will affect the application? When I port my application from HP-UX to Solaris should I take care this area? What are the application touch point in H/W or H/W drivers on these two O.S.? (1 Reply)
Discussion started by: charlcy
1 Replies

6. UNIX for Advanced & Expert Users

Port Redundancy

Dears, I have server has two port's(Enet0,Enet1) what I want as follows: Make the two port's has same IP address where, if the port Enet0 became down automaticly Enet1 become up :confused: . Amen (4 Replies)
Discussion started by: amen00
4 Replies

7. Shell Programming and Scripting

Need Help With Parallel Processing

Hi I am looking for some kind of feature in unix that will help me write a script that can invoke multiple processes in parallel. And make sure that the multiple parallel processes complete successfully before I proceed to the next step. Someone suggested something called timespid or... (6 Replies)
Discussion started by: imnewtothis23
6 Replies

8. Shell Programming and Scripting

csh array help!!

I'm trying call the first item in the array then put it in a loop to call the next items in order. set $p = (port-1, port-2, port-3, port-4, exit) <sourcePort>daughtercard:$P</sourcePort> if ($p == "exit") then break else ($p >> 1) I know the above code isn't correct. I'm... (1 Reply)
Discussion started by: drkelly76
1 Replies

9. UNIX for Dummies Questions & Answers

Parallel port Printing in SCO OSR6

Hi, I am trying to add a parallel printer to my SCO OSR6 server, yet when I run mkdev parallel it just brings up the message: "Parallel Ports are configured automatically in SCO Openserver 6". So when I try and add a local printer, no /dev/lp# ports are shown in the list, only serial ports... (1 Reply)
Discussion started by: Martyn
1 Replies

10. Fedora

Sending a byte to the parallel port

Greetings, A sort of newbie question... I would like to control a couple of stepper motors via the parallel port using C code. I have discovered in Linux, the ioperm() function is required before the outportb() function can be used to send a byte to the parallel port. My problem is ioperm()... (1 Reply)
Discussion started by: meyerga00
1 Replies

11. UNIX for Advanced & Expert Users

Reserve Ephemeral ports

my apps use port 40001; however, for example, firstly, I ftp to other server, it made a high port locally, remote is port 21, unfortunately, it hit my port 40001 and my apps is unable to startup. This chance is very very little, but I hit it. Can resevse my port 40001? otherwise command don't use it (5 Replies)
Discussion started by: goodbid
5 Replies

12. UNIX for Dummies Questions & Answers

Gnu parallel and awk syntax quotes

I have many files that has the following structure. CHR SNP BP A1 TEST NMISS OR SE L95 U95 STAT P 1 rs2980319 766985 A ADD 4948 1.068 0.08356 0.9065 1.258 0.7853 0.4323 1 ... (4 Replies)
Discussion started by: genehunter
4 Replies

13. Shell Programming and Scripting

Help Generate new port base on the last port but not in used by other application

Hi Expert, Anybody can figure it out on how to generate new port base on my last port let say my last port var1=124 and increment for new port 125,126 but this new two ports need to look at first if this port is not in used by any service, if the port is in used add 1 to new port and if in used... (6 Replies)
Discussion started by: lxdorney
6 Replies

14. Shell Programming and Scripting

Copy file from different ports in parallel

Hello folks, Can you please help me to solve the below concern. I have a source server with 2 ports and have to copy the files from both the port to destination server simultaneously in my shell script. How can I achieve that? Source : x.x.x.x port -22 X.x.x.x port -2222 ... (7 Replies)
Discussion started by: sadique.manzar
7 Replies