vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Guten Tag, tech@. I'm having some ordinary ps/2 (minidin) keyboards. > pckbd0 at pckbc0 (kbd slot) If I'm plug in any of such keyboard to PC, after OS (OpenBSD 4.2) booted, I see message > pckbcintr: no dev for slot 1 I can't understand why its talking about "slot 1" (PCKBC_AUX_SLOT). Kernel with next diff (setting slot = PCKBC_KBD_SLOT for testing) allow me make "hot swap" of keyboard(s). I think what slot detection doing something wrong, but I have no idea, what stat and 0x20 stand for. So, what can we do with this? ================================================== ====== --- sys/dev/ic/pckbc.c.orig Tue Nov 27 23:35:43 2007 +++ sys/dev/ic/pckbc.c Tue Nov 27 23:38:10 2007 @@ -954,8 +954,8 @@ served = 1; - slot = (t->t_haveaux && (stat & 0x20)) ? - PCKBC_AUX_SLOT : PCKBC_KBD_SLOT; + slot = PCKBC_KBD_SLOT; + q = t->t_slotdata[slot]; if (!q) { ================================================== ====== -- Dmitry Medvedev OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44 MDT 2007 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: VIA Samuel 2 ("CentaurHauls" 686-class) 802 MHz cpu0: FPU,DE,TSC,MSR,MTRR,PGE,MMX real mem = 519602176 (495MB) avail mem = 494755840 (471MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 08/30/04, BIOS32 rev. 0 @ 0xf9aa0, SMBIOS rev. 2.3 @ 0xf0100 (27 entries) bios0: vendor Award Software International, Inc. version "F3" date 08/30/2004 bios0: Gigabyte Technology Co., Ltd. GA-6VLE apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf0000/0xb9b4 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfb920/144 (7 entries) pcibios0: PCI Exclusive IRQs: 5 10 11 12 pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc0000/0xec00 0xd0000/0x8000! cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "VIA VT8623 PCI" rev 0x00 ppb0 at pci0 dev 1 function 0 "VIA VT8633 AGP" rev 0x00 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "VIA CLE266" rev 0x03: aperture at 0xe0000000, size 0x10000000 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) rl0 at pci0 dev 12 function 0 "Realtek 8139" rev 0x10: irq 11, address 00:0f:ea:88:f4:99 rlphy0 at rl0 phy 0: RTL internal PHY uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: irq 10 uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x80: irq 5 uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x80: irq 11 ehci0 at pci0 dev 16 function 3 "VIA VT6202 USB" rev 0x82: irq 12 usb0 at ehci0: USB revision 2.0 uhub0 at usb0: VIA EHCI root hub, rev 2.00/1.00, addr 1 viapm0 at pci0 dev 17 function 0 "VIA VT8235 ISA" rev 0x00 iic0 at viapm0 pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility pciide0: channel 0 disabled (no drives) wd0 at pciide0 channel 1 drive 0: <WDC WD400BB-75JHA0> wd0: 16-sector PIO, LBA, 38146MB, 78125000 sectors wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5 usb1 at uhci0: USB revision 1.0 uhub1 at usb1: VIA UHCI root hub, rev 1.00/1.00, addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2: VIA UHCI root hub, rev 1.00/1.00, addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3: VIA UHCI root hub, rev 1.00/1.00, addr 1 isa0 at mainbus0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 viasio0 at isa0 port 0x2e/2: VT1211 rev 0x02, HM, WDG not activated npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo biomask ff65 netmask ff65 ttymask ffe7 pctr: user-level cycle counter enabled dkcsum: wd0 matches BIOS drive 0x80 root on wd0a swap on wd0b dump on wd0b |