Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 1 | /** |
| 2 | * This file contains IF layer definitions. |
| 3 | */ |
| 4 | |
| 5 | #ifndef _SBI_H_ |
| 6 | #define _SBI_H_ |
| 7 | |
| 8 | #include <linux/interrupt.h> |
| 9 | |
| 10 | #include "defs.h" |
| 11 | |
| 12 | /** INT status Bit Definition*/ |
| 13 | #define his_cmddnldrdy 0x01 |
| 14 | #define his_cardevent 0x02 |
| 15 | #define his_cmdupldrdy 0x04 |
| 16 | |
| 17 | #ifndef DEV_NAME_LEN |
| 18 | #define DEV_NAME_LEN 32 |
| 19 | #endif |
| 20 | |
| 21 | #define SBI_EVENT_CAUSE_SHIFT 3 |
| 22 | |
| 23 | /* Probe and Check if the card is present*/ |
| 24 | int libertas_sbi_register_dev(wlan_private * priv); |
| 25 | int libertas_sbi_unregister_dev(wlan_private *); |
| 26 | int libertas_sbi_get_int_status(wlan_private * priv, u8 *); |
| 27 | int libertas_sbi_register(void); |
| 28 | void libertas_sbi_unregister(void); |
| 29 | int libertas_sbi_prog_firmware(wlan_private *); |
| 30 | |
| 31 | int libertas_sbi_read_event_cause(wlan_private *); |
| 32 | int libertas_sbi_host_to_card(wlan_private * priv, u8 type, u8 * payload, u16 nb); |
| 33 | wlan_private *libertas_sbi_get_priv(void *card); |
| 34 | |
| 35 | #ifdef ENABLE_PM |
| 36 | int libertas_sbi_suspend(wlan_private *); |
| 37 | int libertas_sbi_resume(wlan_private *); |
| 38 | #endif |
| 39 | |
| 40 | #endif /* _SBI_H */ |