wynik działania lspci
lspci mark@mark-desktop:~$ lspci -v
00:00.0 Host bridge: Intel Corporation N10 Family DMI Bridge
Subsystem: ASRock Incorporation Device a000
Flags: bus master, fast devsel, latency 0
Capabilities: <access denied>
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp
00:02.0 VGA compatible controller: Intel Corporation N10 Family Integrated Graphics Controller
Subsystem: ASRock Incorporation Device a001
Flags: bus master, fast devsel, latency 0, IRQ 26
Memory at fe980000 (32-bit, non-prefetchable) [size=512K]
I/O ports at cc00 [size=8]
Memory at e0000000 (32-bit, prefetchable) [size=256M]
Memory at fe800000 (32-bit, non-prefetchable) [size=1M]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
Subsystem: ASRock Incorporation Device 3662
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at fe978000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 02)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: fea00000-feafffff
Prefetchable memory behind bridge: 00000000f0000000-00000000f01fffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 02)
Subsystem: ASRock Incorporation Device 27c8
Flags: bus master, medium devsel, latency 0, IRQ 23
I/O ports at c880 [size=32]
Kernel driver in use: uhci_hcd
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 02)
Subsystem: ASRock Incorporation Device 27c9
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at c800 [size=32]
Kernel driver in use: uhci_hcd
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 02)
Subsystem: ASRock Incorporation Device 27ca
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at c480 [size=32]
Kernel driver in use: uhci_hcd
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 02)
Subsystem: ASRock Incorporation Device 27cb
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at c400 [size=32]
Kernel driver in use: uhci_hcd
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 02) (prog-if 20)
Subsystem: ASRock Incorporation Device 27cc
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at fe977c00 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) (prog-if 01)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
I/O behind bridge: 0000e000-0000efff
Memory behind bridge: feb00000-febfffff
Capabilities: <access denied>
00:1f.0 ISA bridge: Intel Corporation NM10 Family LPC Controller (rev 02)
Subsystem: ASRock Incorporation Device 27bc
Flags: bus master, medium devsel, latency 0
Capabilities: <access denied>
00:1f.2 SATA controller: Intel Corporation N10/ICH7 Family SATA AHCI Controller (rev 02) (prog-if 01)
Subsystem: ASRock Incorporation Device 27c1
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 25
I/O ports at c080 [size=8]
I/O ports at c000 [size=4]
I/O ports at bc00 [size=8]
I/O ports at b880 [size=4]
I/O ports at b800 [size=32]
Memory at fe977800 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ahci
Kernel modules: ahci
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 02)
Subsystem: ASRock Incorporation Device 27da
Flags: medium devsel, IRQ 5
I/O ports at 0400 [size=32]
Kernel modules: i2c-i801
01:00.0 Ethernet controller: Atheros Communications AR8151 v2.0 Gigabit Ethernet (rev c0)
Subsystem: ASRock Incorporation Device 1083
Flags: bus master, fast devsel, latency 0, IRQ 10
Memory at feac0000 (64-bit, non-prefetchable) [size=256K]
I/O ports at dc00 [size=128]
Capabilities: <access denied>
02:00.0 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller (prog-if 03)
Subsystem: Device a000:2000
Flags: bus master, medium devsel, latency 32, IRQ 14
I/O ports at ec00 [size=8]
I/O ports at e880 [size=8]
Memory at febff000 (32-bit, non-prefetchable) [size=4K]
Memory at febfe000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
02:00.2 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller (prog-if 03)
Subsystem: Device a000:2000
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at e800 [size=8]
I/O ports at e480 [size=8]
Memory at febfd000 (32-bit, non-prefetchable) [size=4K]
Memory at febfc000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
obecna w komputerze karta PCI posiada dwa porty LPT:
02:00.0 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller (prog-if 03)
Subsystem: Device a000:2000
Flags: bus master, medium devsel, latency 32, IRQ 14
I/O ports at ec00 [size= 8]
I/O ports at e880 [size= 8]
Memory at febff000 (32-bit, non-prefetchable) [size=4K]
Memory at febfe000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
02:00.2 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller (prog-if 03)
Subsystem: Device a000:2000
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at e800 [size= 8]
I/O ports at e480 [size= 8]
Memory at febfd000 (32-bit, non-prefetchable) [size=4K]
Memory at febfc000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
pierwszy port dodatkowy ma adres bazowy 0xec00, a drugi 0xe800
odpowiedni kod dla HAL w EMC2
loadrt hal_parport cfg="0x378 out 0xec00 out 0xe800 out"
addf parport.0.read base-thread
addf parport.1.read base-thread
addf parport.2.read base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread
addf parport.1.write base-thread
addf parport.1.reset base-thread
addf parport.2.write base-thread
addf parport.2.reset base-thread
0x378 to port LPT z płyty głównej...