[feature request] OMRON BX50F UPS not recognized as ugen

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[feature request] OMRON BX50F UPS not recognized as ugen

Vladas Urbonas
On Tue, Aug 28, 2007 at 10:14 AM, vladas <[hidden email]> wrote:
>  >Synopsis:       OMRON BX35F UPS is recognized as uhidev, not ugen

Index: usb_quirks.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/usb_quirks.c,v
retrieving revision 1.34
diff -u -r1.34 usb_quirks.c
--- usb_quirks.c 23 Feb 2008 22:19:13 -0000 1.34
+++ usb_quirks.c 6 May 2008 05:07:38 -0000
@@ -137,6 +137,7 @@
  { USB_VENDOR_NEC, USB_PRODUCT_NEC_PICTY800,    ANY,   { UQ_BROKEN_BIDIR }},
  { USB_VENDOR_METAGEEK, USB_PRODUCT_METAGEEK_WISPY, ANY,   { UQ_BAD_HID }},
  { USB_VENDOR_OMRON, USB_PRODUCT_OMRON_BX35F,       ANY,   { UQ_BAD_HID }},
+ { USB_VENDOR_OMRON, USB_PRODUCT_OMRON_BX50F,       ANY,   { UQ_BAD_HID }},
  { USB_VENDOR_TENX, USB_PRODUCT_TENX_MISSILE,    ANY,   { UQ_BAD_HID }},
  { USB_VENDOR_APC, USB_PRODUCT_APC_UPSPRO500,    ANY,   { UQ_BAD_HID }},
  { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C550AVR, ANY,   { UQ_BAD_HID }},
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.350
diff -u -r1.350 usbdevs
--- usbdevs 5 May 2008 12:15:21 -0000 1.350
+++ usbdevs 6 May 2008 05:07:39 -0000
@@ -2030,6 +2030,7 @@
 product OMNIVISION OV511PLUS 0xa511 OV511+

 /* OMRON products */
+product OMRON BX50F 0x0057 OMRON BX50F
 product OMRON BX35F 0x0058 OMRON BX35F

 /* OnSpec Electronic, Inc. */
Index: usbdevs.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.359
diff -u -r1.359 usbdevs.h
--- usbdevs.h 5 May 2008 12:15:59 -0000 1.359
+++ usbdevs.h 6 May 2008 05:07:39 -0000
@@ -2037,6 +2037,7 @@
 #define USB_PRODUCT_OMNIVISION_OV511PLUS 0xa511 /* OV511+ */

 /* OMRON products */
+#define USB_PRODUCT_OMRON_BX50F 0x0057 /* OMRON BX50F */
 #define USB_PRODUCT_OMRON_BX35F 0x0058 /* OMRON BX35F */

 /* OnSpec Electronic, Inc. */
Index: usbdevs_data.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.355
diff -u -r1.355 usbdevs_data.h
--- usbdevs_data.h 5 May 2008 12:16:00 -0000 1.355
+++ usbdevs_data.h 6 May 2008 05:07:40 -0000
@@ -4137,6 +4137,10 @@
     "OV511+",
  },
  {
+    USB_VENDOR_OMRON, USB_PRODUCT_OMRON_BX50F,
+    "OMRON BX50F",
+ },
+ {
     USB_VENDOR_OMRON, USB_PRODUCT_OMRON_BX35F,
     "OMRON BX35F",
  },



--- dmesg.before Tue May  6 14:28:31 2008
+++ dmesg.after Tue May  6 14:32:05 2008
@@ -1,5 +1,5 @@
-OpenBSD 4.3-current (GENERIC) #853: Fri May  2 04:37:23 MDT 2008
-    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
+OpenBSD 4.3-current (GENERIC_WITH_OMRON_BX50F) #0: Tue May  6 14:16:00 JST 2008
+    root@foo:/usr/src/sys/arch/i386/compile/GENERIC_WITH_OMRON_BX50F
 cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz ("GenuineIntel" 686-class) 3.02 GHz
 cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,CNXT-ID,CX16,xTPR
 real mem  = 1073246208 (1023MB)
@@ -79,8 +79,6 @@
 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
 biomask ff6d netmask ff6d ttymask ffef
 mtrr: Pentium Pro MTRR support
-uhidev0 at uhub4 port 2 configuration 1 interface 0 "OMRON BX50F" rev
1.10/1.02 addr 2
-uhidev0: iclass 3/0
-uhid0 at uhidev0: input=64, output=16, feature=0
+ugen0 at uhub4 port 2 "OMRON BX50F" rev 1.10/1.02 addr 2
 softraid0 at root
 root on wd0a swap on wd0b dump on wd0b

Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered
 port 7 powered
 port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 addr 2: low speed, power 100 mA, config 1, BX50F(0x0057),
OMRON(0x0590), rev 1.02


OpenBSD 4.3-current (GENERIC_WITH_OMRON_BX50F) #0: Tue May  6 14:16:00 JST 2008
    root@foo:/usr/src/sys/arch/i386/compile/GENERIC_WITH_OMRON_BX50F
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz ("GenuineIntel" 686-class) 3.02 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,CNXT-ID,CX16,xTPR
real mem  = 1073246208 (1023MB)
avail mem = 1029689344 (981MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 01/04/06, BIOS32 rev. 0 @
0xfb290, SMBIOS rev. 2.3 @ 0xf0100 (39 entries)
bios0: vendor Award Software International, Inc. version "F6" date 01/04/2006
bios0: Gigabyte Technology Co., Ltd. 8I945G
apm0 at bios0: Power Management spec V1.2 (slowidle)
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 3.0 @ 0xf0000/0xd974
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfd860/256 (14 entries)
pcibios0: PCI Exclusive IRQs: 3 5 9 10 11
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801GH LPC" rev 0x00)
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc0000/0xf200 0xd0000/0x8000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945G Host" rev 0x02
ppb0 at pci0 dev 1 function 0 "Intel 82945G PCIE" rev 0x02: irq 5
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce 6600" rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: no integrated graphics
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: irq 5
azalia0: codec[s]: Realtek ALC882
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: irq 5
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x01: irq 10
pci3 at ppb2 bus 3
bge0 at pci3 dev 0 function 0 "Broadcom BCM5789" rev 0x11, BCM5750 B1
(0x4101): irq 10, address <>
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: irq 3
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: irq 9
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: irq 10
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: irq 5
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: irq 3
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xe1
pci4 at ppb3 bus 4
pciide0 at pci4 dev 6 function 0 "ITExpress IT8212F" rev 0x13: DMA,
channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide0: using irq 11 for native-PCI interrupt
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC" rev 0x01: PM disabled
pciide1 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide1 channel 0 drive 0: <HDS728080PLAT20>
wd0: 16-sector PIO, LBA48, 78533MB, 160836480 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide1: channel 1 disabled (no drives)
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: irq 9
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-4200CL5
spdmem1 at iic0 addr 0x51: 512MB DDR2 SDRAM non-parity PC2-4200CL5
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
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
it0 at isa0 port 0x2e/2: IT8712F rev 0x07, EC port 0x290
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
biomask ff6d netmask ff6d ttymask ffef
mtrr: Pentium Pro MTRR support
ugen0 at uhub4 port 2 "OMRON BX50F" rev 1.10/1.02 addr 2
softraid0 at root
root on wd0a swap on wd0b dump on wd0b


Thank you.