sys/netgraph7/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
static int
ubtbcmfw_match(device_t self)
{
#define	USB_PRODUCT_BROADCOM_BCM2033NF	0x2033
	struct usb_attach_arg *uaa = device_get_ivars(self);

	if (uaa->iface != NULL)
		return (UMATCH_NONE);

	/* Match the boot device. */
	if (uaa->vendor == USB_VENDOR_BROADCOM &&
	    uaa->product == USB_PRODUCT_BROADCOM_BCM2033NF)
		return (UMATCH_VENDOR_PRODUCT);

	return (UMATCH_NONE);
}
/*
 * Probe for a USB Bluetooth device
 */
Probe for a USB Bluetooth device
Probe for a USB Bluetooth device
static int
ubtbcmfw_match(device_t self)
{
#define	USB_PRODUCT_BROADCOM_BCM2033NF	0x2033
	struct usb_attach_arg *uaa = device_get_ivars(self);
	if (uaa->iface != NULL)
		return (UMATCH_NONE);
	if (uaa->vendor == USB_VENDOR_BROADCOM &&
	    uaa->product == USB_PRODUCT_BROADCOM_BCM2033NF)
		return (UMATCH_VENDOR_PRODUCT);
	return (UMATCH_NONE);
}
static int ubtbcmfw_match ( device_t self ) { #define USB_PRODUCT_BROADCOM_BCM2033NF 	0x2033 struct usb_attach_arg * uaa = device_get_ivars ( self ) ; if ( uaa -> iface != NULL ) return ( UMATCH_NONE ) ; if ( uaa -> vendor == USB_VENDOR_BROADCOM && uaa -> product == USB_PRODUCT_BROADCOM_BCM2033NF ) return ( UMATCH_VENDOR_PRODUCT ) ; return ( UMATCH_NONE ) ; }
Probe for a USB Bluetooth device
Probe for a USB Bluetooth device
/* Match the boot device. */