1 typedef struct bluecard_info_t
{
7 spinlock_t lock
; /* For serializing operations */
8 struct timer_list timer
; /* For LED control */
10 struct sk_buff_head txq
;
11 unsigned long tx_state
;
13 unsigned long rx_state
;
14 unsigned long rx_count
;
15 struct sk_buff
*rx_skb
;
17 unsigned char ctrl_reg
;
18 unsigned long hw_state
; /* Status of the hardware and LED control */
22 static int bluecard_hci_send_frame(struct sk_buff
*skb
)
24 bluecard_info_t
*info
;
25 struct hci_dev
*hdev
= (struct hci_dev
*)(skb
->dev
);
30 static void bluecard_receive(bluecard_info_t
*info
, unsigned int offset
)
33 unsigned char buf
[31];
35 bluecard_info_t info2
;
37 info
->rx_skb
->pkt_type
= buf
[i
];