Release coccinelle-0.1.11rc1
[bpt/coccinelle.git] / tests / type_annotated_fields.c
CommitLineData
34e49164
C
1typedef struct bluecard_info_t {
2 dev_link_t link;
3 dev_node_t node;
4
5 struct hci_dev *hdev;
6
7 spinlock_t lock; /* For serializing operations */
8 struct timer_list timer; /* For LED control */
9
10 struct sk_buff_head txq;
11 unsigned long tx_state;
12
13 unsigned long rx_state;
14 unsigned long rx_count;
15 struct sk_buff *rx_skb;
16
17 unsigned char ctrl_reg;
18 unsigned long hw_state; /* Status of the hardware and LED control */
19} bluecard_info_t;
20
21
22static int bluecard_hci_send_frame(struct sk_buff *skb)
23{
24 bluecard_info_t *info;
25 struct hci_dev *hdev = (struct hci_dev *)(skb->dev);
26 skb->pkt_type;
27 hdev->stat.cmd_tx++;
28}
29
30static void bluecard_receive(bluecard_info_t *info, unsigned int offset)
31{
32
33 unsigned char buf[31];
34 int i, len;
35 bluecard_info_t info2;
36
37 info->rx_skb->pkt_type = buf[i];
38 info2.tx_state;
39
40}
41
42