Subject: Re: IBM IDE PC Card -support
To: Michael <macallan1888@gmail.com>
From: None <pmps@onet.eu>
List: port-i386
Date: 06/19/2006 21:31:57
Hello,
I've tried and nothing but i discovered that FreeBSD have proper
driver called "ata".

I've tried on NetBSD 2.1, 3.0 and current and this is the 
dmesg output:

NetBSD 3.0_STABLE (GENERIC_LAPTOP) #0: Mon Jun  5 14:01:13 UTC 2006
	riz@b2.netbsd.org:/home/builds/ab/netbsd-3/i386/200606050000Z-obj/home/builds/ab/netbsd-3/src/sys/arch/i386/compile/GENERIC_LAPTOP
total memory = 127 MB
avail memory = 118 MB
BIOS32 rev. 0 found at 0xfd8b0
PCI BIOS rev. 2.1 found at 0xfd9df
pcibios: config mechanism [1][x], special cycles [x][x], last bus 0
PCI IRQ Routing Table rev. 1.0 found at 0xfdf60, size 128 bytes (6 entries)
PCI Interrupt Router at 000:07:0 (Intel 82371FB (PIIX) PCI-ISA Bridge compatible)
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:07:2 0x8086 0x719a   D  0x03  11  0    already assigned
000:10:0 0x104c 0xac1e   A  0x01   9  0    already assigned
000:11:0 0x1013 0x6005   A  0x02  10  0    already assigned
000:12:0 0x11c1 0x0449   A  0x03  11  0    already assigned
------------------------------------------
PCI fixup examining 8086:7194
PCI fixup examining 8086:7198
PCI fixup examining 8086:7199
PCI fixup examining 8086:719a
PCI fixup examining 8086:719b
PCI fixup examining 126f:712
PCI fixup examining 104c:ac1e
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 1013:6005
PCI fixup examining 11c1:449
PCI bus #1 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x8086 0x7194 
		[OK]
000:07:0 0x8086 0x7198 
		[OK]
000:07:1 0x8086 0x7199 
	20h port 0x00001420 0x00000010
		[OK]
000:07:2 0x8086 0x719a 
	20h port 0x00001400 0x00000020
		[OK]
000:07:3 0x8086 0x719b 
		[OK]
000:09:0 0x126f 0x0712 
	10h mem  0xfd000000 0x01000000
		[OK]
000:10:0 0x104c 0xac1e 
	10h mem  0x00000000 0x00001000
		[NG]
000:11:0 0x1013 0x6005 
	10h mem  0xfc010000 0x00001000
	14h mem  0xfc000000 0x00010000
		[OK]
000:12:0 0x11c1 0x0449 
	10h mem  0xfc011000 0x00000100
	14h port 0x000002e8 0x00000008
	18h port 0x00001000 0x00000100
		[OK]
--------------------------[  1 devices bogus]
 Physical memory end: 0x07fec000
 PCI memory mapped I/O space start: 0x08000000
[PCIBIOS fixup stage]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x8086 0x7194 
		[OK]
000:07:0 0x8086 0x7198 
		[OK]
000:07:1 0x8086 0x7199 
	20h port 0x00001420 0x00000010
		[OK]
000:07:2 0x8086 0x719a 
	20h port 0x00001400 0x00000020
		[OK]
000:07:3 0x8086 0x719b 
		[OK]
000:09:0 0x126f 0x0712 
	10h mem  0xfd000000 0x01000000
		[OK]
000:10:0 0x104c 0xac1e 
	10h mem  0x08000000 0x00001000
		[OK]
000:11:0 0x1013 0x6005 
	10h mem  0xfc010000 0x00001000
	14h mem  0xfc000000 0x00010000
		[OK]
000:12:0 0x11c1 0x0449 
	10h mem  0xfc011000 0x00000100
	14h port 0x000002e8 0x00000008
	18h port 0x00001000 0x00000100
		[OK]
--------------------------[  0 devices bogus]
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 497.87 MHz, id 0x683
cpu0: features 387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 387f9ff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
cpu0: features 387f9ff<FXSR,SSE>
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: L2 cache 256 KB 32B/line 8-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: serial number 0000-0683-0001-E0F1-9FC1-0F7E
cpu0: 8 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443MX Host Bridge/Controller (rev. 0x01)
Intel 82443MX PCI-ISA Bridge (miscellaneous bridge, revision 0x01) at pci0 dev 7 function 0 not configured
piixide0 at pci0 dev 7 function 1
piixide0: Intel 82440MX IDE controller (rev. 0x00)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
uhci0 at pci0 dev 7 function 2: Intel 82443MX USB Host Controller (rev. 0x00)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82443MX Power Management Controller (miscellaneous bridge) at pci0 dev 7 function 3 not configured
vga1 at pci0 dev 9 function 0: Silicon Motion LynxEM+ (rev. 0xa0)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
cbb0 at pci0 dev 10 function 0: Texas Instruments PCI1211 PCI-CardBus Bridge (rev. 0x00)
clct0 at pci0 dev 11 function 0: Cirrus Logic CS4281 CrystalClear Audio Interface (rev. 0x01)
clct0: interrupting at irq 10
clct0: ac97: Crystal CS4297A codec; headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
clct0: ac97: ext id 200<AMAP>
audio0 at clct0: full duplex, independent
Lucent Technologies LTMODEM (miscellaneous communications, revision 0x01) at pci0 dev 12 function 0 not configured
cbb0: interrupting at irq 9
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0
pcmcia0 at cardslot0
isa0 at mainbus0
lpt2 at isa0 port 0x3bc-0x3bf irq : polled
com2 at isa0 port 0x3e8-0x3ef irq 5: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
pcmcia0 function 0: <PCMCIA, IDE CARD, F1> (manufacturer 0xffffffff, product 0xffffffff)
 not configured
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: LEXR PLUG DRIVE LEXR PLUG DRIVE, rev 1.10/0.01, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <LEXAR, DIGITAL FILM, /W1.> disk removable
sd0: 123 MB, 984 cyl, 8 head, 32 sec, 512 bytes/sect x 251904 sectors
wd0 at atabus0 drive 0: <IBM-DARA-212000>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 11509 MB, 24944 cyl, 15 head, 63 sec, 512 bytes/sect x 23572080 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
sd0(umass0:0:0:0): no door lock
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsdisplay0: screen 5 added (80x50, vt100 emulation)

Thanks and cheers

Michael <macallan1888@gmail.com>:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hello,
>
>> I've recently bought IBM Thinkpad 240X with external CD-Rom drive
>> which might be connected to my laptop by this IBM IDE PC Card.
>> I was searching for info about support for this Card by NetBSD but i
>> didn't found one. Is there any possibility of adding support for this
>> hardware? How I could (without writing my own driver) have support
>> for this card?
>
>Did you even try it?
>NetBSD supports a bunch of PCMCIA IDE interfaces.
>And we need to see what the kernel thinks of the card to know what 
>exactly it is, if it really needs its own driver or maybe it will Just 
>Work.
>So please just try it and post the relevant dmesg output.
>
>have fun
>Michael
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.4 (Darwin)
>
>iQEVAwUBRJGT38pnzkX8Yg2nAQINDggAuhWxfTwPjLyhbsqGYzbD5LwvyKWth1r3
>n9/MeMhiS2AhODq9aAchufFb3IZcPa08iFv8T0WrVYaShsgrPNqjDDMLWnR28faO
>e0nU5tFdCeg/QvcWgHailcht5sWSSHlZTYJITq9JXmD7Xyr2ljKvzrI/ESA9Oiti
>tQgo/XMaFaGa2U7VXW+uHZrB+4ZcyJ3zggwE60d7gUbi3d96mBvL7J2VRcbi49r7
>hcnfMEjotgkxnUksjDIg0aOjEvVFcuDQdCoeprnzlAo/fHwfx5YpU0uC4HWuE+Kh
>3a+avjpl24cG/9703TLea46VogRQx9Ax6F03od9DGGXWPezvS1HInA==
>=PxD1
>-----END PGP SIGNATURE-----
>