1PARPORT_REGISTER_POR(9) Parallel Port Devices PARPORT_REGISTER_POR(9)
2
3
4
6 parport_register_port - register a parallel port
7
9 struct parport * parport_register_port(unsigned long base, int irq,
10 int dma,
11 struct parport_operations * ops);
12
14 base
15 base I/O address
16
17 irq
18 IRQ line
19
20 dma
21 DMA channel
22
23 ops
24 pointer to the port driver's port operations structure
25
27 When a parallel port (lowlevel) driver finds a port that should be made
28 available to parallel port device drivers, it should call
29 parport_register_port. The base, irq, and dma parameters are for the
30 convenience of port drivers, and for ports where they aren't meaningful
31 needn't be set to anything special. They can be altered afterwards by
32 adjusting the relevant members of the parport structure that is
33 returned and represents the port. They should not be tampered with
34 after calling parport_announce_port, however.
35
36 If there are parallel port device drivers in the system that have
37 registered themselves using parport_register_driver, they are not told
38 about the port at this time; that is done by parport_announce_port.
39
40 The ops structure is allocated by the caller, and must not be
41 deallocated before calling parport_remove_port.
42
43 If there is no memory to allocate a new parport structure, this
44 function will return NULL.
45
47Kernel Hackers Manual 3.10 June 2019 PARPORT_REGISTER_POR(9)