require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&WI_USB_CONFIG_NO)) {
    sub WI_USB_CONFIG_NO () {	1;}
}
unless(defined(&WI_USB_ENDPT_TX)) {
    sub WI_USB_ENDPT_TX () {	1;}
}
unless(defined(&WI_USB_ENDPT_RX)) {
    sub WI_USB_ENDPT_RX () {	2;}
}
unless(defined(&WI_USB_ENDPT_INTR)) {
    sub WI_USB_ENDPT_INTR () {	3;}
}
unless(defined(&WI_USB_ENDPT_MAX)) {
    sub WI_USB_ENDPT_MAX () {	4;}
}
unless(defined(&WI_USB_IFACE_IDX)) {
    sub WI_USB_IFACE_IDX () {	0;}
}
unless(defined(&WI_USB_DATA_MAXLEN)) {
    sub WI_USB_DATA_MAXLEN () {	 &WI_DEFAULT_DATALEN;}
}
unless(defined(&WI_USB_BUFSZ)) {
    sub WI_USB_BUFSZ () {	2368;}
}
unless(defined(&WI_USB_INTR_INTERVAL)) {
    sub WI_USB_INTR_INTERVAL () {	100;}
}
unless(defined(&WI_USB_TX_LIST_CNT)) {
    sub WI_USB_TX_LIST_CNT () {	1;}
}
unless(defined(&WI_USB_RX_LIST_CNT)) {
    sub WI_USB_RX_LIST_CNT () {	1;}
}
unless(defined(&WI_USB_CMD_INIT)) {
    sub WI_USB_CMD_INIT () {	0x;}
}
unless(defined(&WI_USB_CMD_ENABLE)) {
    sub WI_USB_CMD_ENABLE () {	0x1;}
}
unless(defined(&WI_USB_CMD_DISABLE)) {
    sub WI_USB_CMD_DISABLE () {	0x2;}
}
unless(defined(&WI_USB_CMD_DIAG)) {
    sub WI_USB_CMD_DIAG () {	0x3;}
}
unless(defined(&WI_USB_INTR_PKTLEN)) {
    sub WI_USB_INTR_PKTLEN () {	8;}
}
unless(defined(&WI_USB_TX_TIMEOUT)) {
    sub WI_USB_TX_TIMEOUT () {	10000;}
}
unless(defined(&WI_USB_TXFRM)) {
    sub WI_USB_TXFRM () {	0;}
}
unless(defined(&WI_USB_CMDREQ)) {
    sub WI_USB_CMDREQ () {	1;}
}
unless(defined(&WI_USB_WRIDREQ)) {
    sub WI_USB_WRIDREQ () {	2;}
}
unless(defined(&WI_USB_RRIDREQ)) {
    sub WI_USB_RRIDREQ () {	3;}
}
unless(defined(&WI_USB_WMEMREQ)) {
    sub WI_USB_WMEMREQ () {	4;}
}
unless(defined(&WI_USB_RMEMREQ)) {
    sub WI_USB_RMEMREQ () {	5;}
}
unless(defined(&WI_USB_ISTXFRM)) {
    sub WI_USB_ISTXFRM {
	my($a) = @_;
	eval q(((($a) & 0xf000) == 0x));
    }
}
unless(defined(&WI_USB_ISRXFRM)) {
    sub WI_USB_ISRXFRM {
	my($a) = @_;
	eval q(((($a) & 0xf000) == 0x2000));
    }
}
unless(defined(&WI_USB_INFOFRM)) {
    sub WI_USB_INFOFRM () {	0x8000;}
}
unless(defined(&WI_USB_CMDRESP)) {
    sub WI_USB_CMDRESP () {	0x8001;}
}
unless(defined(&WI_USB_WRIDRESP)) {
    sub WI_USB_WRIDRESP () {	0x8002;}
}
unless(defined(&WI_USB_RRIDRESP)) {
    sub WI_USB_RRIDRESP () {	0x8003;}
}
unless(defined(&WI_USB_WMEMRESP)) {
    sub WI_USB_WMEMRESP () {	0x8004;}
}
unless(defined(&WI_USB_RMEMRESP)) {
    sub WI_USB_RMEMRESP () {	0x8005;}
}
unless(defined(&WI_USB_BUFAVAIL)) {
    sub WI_USB_BUFAVAIL () {	0x8006;}
}
unless(defined(&WI_USB_ERROR)) {
    sub WI_USB_ERROR () {	0x8007;}
}
unless(defined(&WI_GET_IFP)) {
    sub WI_GET_IFP {
	my($sc) = @_;
	eval q(($sc)-> ($sc_wi->{sc_ic}->{ic_if}));
    }
}
1;
