old mode 100644new mode 100755| .. | .. |
|---|
| 68 | 68 | DBUS_ERR_RXZLP |
|---|
| 69 | 69 | }; |
|---|
| 70 | 70 | |
|---|
| 71 | | -#define BCM_OTP_SIZE_43236 84 /* number of 16 bit values */ |
|---|
| 72 | | -#define BCM_OTP_SW_RGN_43236 24 /* start offset of SW config region */ |
|---|
| 73 | | -#define BCM_OTP_ADDR_43236 0x18000800 /* address of otp base */ |
|---|
| 74 | | - |
|---|
| 75 | 71 | #define ERR_CBMASK_TXFAIL 0x00000001 |
|---|
| 76 | 72 | #define ERR_CBMASK_RXFAIL 0x00000002 |
|---|
| 77 | 73 | #define ERR_CBMASK_ALL 0xFFFFFFFF |
|---|
| .. | .. |
|---|
| 320 | 316 | * For NDIS60, param2 is WdfDevice |
|---|
| 321 | 317 | * Under Linux, param1 and param2 are NULL; |
|---|
| 322 | 318 | */ |
|---|
| 323 | | -//extern int dbus_register(int vid, int pid, probe_cb_t prcb, disconnect_cb_t discb, void *prarg, |
|---|
| 324 | | -// void *param1, void *param2); |
|---|
| 325 | | -//extern int dbus_deregister(void); |
|---|
| 319 | +extern int dbus_register(int vid, int pid, probe_cb_t prcb, disconnect_cb_t discb, void *prarg, |
|---|
| 320 | + void *param1, void *param2); |
|---|
| 321 | +extern int dbus_deregister(void); |
|---|
| 326 | 322 | |
|---|
| 327 | 323 | //extern int dbus_download_firmware(dbus_pub_t *pub); |
|---|
| 328 | 324 | //extern int dbus_up(struct dhd_bus *pub); |
|---|
| .. | .. |
|---|
| 331 | 327 | extern int dbus_shutdown(dbus_pub_t *pub); |
|---|
| 332 | 328 | extern void dbus_flowctrl_rx(dbus_pub_t *pub, bool on); |
|---|
| 333 | 329 | |
|---|
| 334 | | -//extern int dbus_send_txdata(dbus_pub_t *dbus, void *pktbuf); |
|---|
| 330 | +extern int dbus_send_txdata(dbus_pub_t *dbus, void *pktbuf); |
|---|
| 335 | 331 | extern int dbus_send_buf(dbus_pub_t *pub, uint8 *buf, int len, void *info); |
|---|
| 336 | | -//extern int dbus_send_pkt(dbus_pub_t *pub, void *pkt, void *info); |
|---|
| 332 | +extern int dbus_send_pkt(dbus_pub_t *pub, void *pkt, void *info); |
|---|
| 337 | 333 | //extern int dbus_send_ctl(struct dhd_bus *pub, uint8 *buf, int len); |
|---|
| 338 | 334 | //extern int dbus_recv_ctl(struct dhd_bus *pub, uint8 *buf, int len); |
|---|
| 339 | | -//extern int dbus_recv_bulk(dbus_pub_t *pub, uint32 ep_idx); |
|---|
| 340 | | -//extern int dbus_poll_intr(dbus_pub_t *pub); |
|---|
| 335 | +extern int dbus_recv_bulk(dbus_pub_t *pub, uint32 ep_idx); |
|---|
| 336 | +extern int dbus_poll_intr(dbus_pub_t *pub); |
|---|
| 341 | 337 | extern int dbus_get_stats(dbus_pub_t *pub, dbus_stats_t *stats); |
|---|
| 342 | 338 | extern int dbus_get_device_speed(dbus_pub_t *pub); |
|---|
| 343 | 339 | extern int dbus_set_config(dbus_pub_t *pub, dbus_config_t *config); |
|---|
| .. | .. |
|---|
| 411 | 407 | void (*rxerr_indicate)(void *cbarg, bool on); |
|---|
| 412 | 408 | } dbus_intf_callbacks_t; |
|---|
| 413 | 409 | |
|---|
| 414 | | -/* callback functions */ |
|---|
| 415 | | -typedef struct { |
|---|
| 416 | | - /* probe the device */ |
|---|
| 417 | | - void *(*probe)(uint16 bus, uint16 slot, uint32 hdrlen); |
|---|
| 418 | | - /* remove the device */ |
|---|
| 419 | | - void (*remove)(void *context); |
|---|
| 420 | | - /* can we suspend now */ |
|---|
| 421 | | - int (*suspend)(void *context); |
|---|
| 422 | | - /* resume from suspend */ |
|---|
| 423 | | - int (*resume)(void *context); |
|---|
| 424 | | -} dbus_driver_t; |
|---|
| 425 | | - |
|---|
| 426 | 410 | /* |
|---|
| 427 | 411 | * Porting: To support new bus, port these functions below |
|---|
| 428 | 412 | */ |
|---|
| .. | .. |
|---|
| 431 | 415 | * Bus specific Interface |
|---|
| 432 | 416 | * Implemented by dbus_usb.c/dbus_sdio.c |
|---|
| 433 | 417 | */ |
|---|
| 434 | | -extern int dbus_bus_register(dbus_driver_t *driver, dbus_intf_t **intf); |
|---|
| 418 | +extern int dbus_bus_register(int vid, int pid, probe_cb_t prcb, disconnect_cb_t discb, void *prarg, |
|---|
| 419 | + dbus_intf_t **intf, void *param1, void *param2); |
|---|
| 435 | 420 | extern int dbus_bus_deregister(void); |
|---|
| 436 | 421 | extern void dbus_bus_fw_get(void *bus, uint8 **fw, int *fwlen, int *decomp); |
|---|
| 437 | 422 | |
|---|
| .. | .. |
|---|
| 439 | 424 | * Bus-specific and OS-specific Interface |
|---|
| 440 | 425 | * Implemented by dbus_usb_[linux/ndis].c/dbus_sdio_[linux/ndis].c |
|---|
| 441 | 426 | */ |
|---|
| 442 | | -extern int dbus_bus_osl_register(dbus_driver_t *driver, dbus_intf_t **intf); |
|---|
| 427 | +extern int dbus_bus_osl_register(int vid, int pid, probe_cb_t prcb, disconnect_cb_t discb, |
|---|
| 428 | + void *prarg, dbus_intf_t **intf, void *param1, void *param2); |
|---|
| 443 | 429 | extern int dbus_bus_osl_deregister(void); |
|---|
| 444 | 430 | |
|---|
| 445 | 431 | /* |
|---|
| .. | .. |
|---|
| 453 | 439 | extern uint usbdev_bulkin_eps(void); |
|---|
| 454 | 440 | #if defined(BCM_REQUEST_FW) |
|---|
| 455 | 441 | extern void *dbus_get_fw_nvfile(int devid, int chiprev, uint8 **fw, int *fwlen, int type, |
|---|
| 456 | | - uint16 boardtype, uint16 boardrev, char *path); |
|---|
| 442 | + uint16 boardtype, uint16 boardrev); |
|---|
| 457 | 443 | extern void dbus_release_fw_nvfile(void *firmware); |
|---|
| 458 | 444 | #endif /* #if defined(BCM_REQUEST_FW) */ |
|---|
| 459 | 445 | |
|---|
| .. | .. |
|---|
| 638 | 624 | #endif /* EHCI_FASTPATH_TX || EHCI_FASTPATH_RX */ |
|---|
| 639 | 625 | |
|---|
| 640 | 626 | void dbus_flowctrl_tx(void *dbi, bool on); |
|---|
| 641 | | -#ifdef LINUX |
|---|
| 642 | | -struct device * dbus_get_dev(void); |
|---|
| 643 | | -#endif /* LINUX */ |
|---|
| 644 | 627 | #endif /* __DBUS_H__ */ |
|---|