rsp.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) rsp.c (7e0352306f6869b442a574a8e691f126c9fe930a)
1/*
2 * The NFC Controller Interface is the communication protocol between an
3 * NFC Controller (NFCC) and a Device Host (DH).
4 *
5 * Copyright (C) 2011 Texas Instruments, Inc.
6 *
7 * Written by Ilan Elias <ilane@ti.com>
8 *

--- 105 unchanged lines hidden (view full) ---

114 ndev->manufact_id);
115 pr_debug("manufact_specific_info 0x%x\n",
116 ndev->manufact_specific_info);
117
118exit:
119 nci_req_complete(ndev, rsp_1->status);
120}
121
1/*
2 * The NFC Controller Interface is the communication protocol between an
3 * NFC Controller (NFCC) and a Device Host (DH).
4 *
5 * Copyright (C) 2011 Texas Instruments, Inc.
6 *
7 * Written by Ilan Elias <ilane@ti.com>
8 *

--- 105 unchanged lines hidden (view full) ---

114 ndev->manufact_id);
115 pr_debug("manufact_specific_info 0x%x\n",
116 ndev->manufact_specific_info);
117
118exit:
119 nci_req_complete(ndev, rsp_1->status);
120}
121
122static void nci_core_set_config_rsp_packet(struct nci_dev *ndev,
123 struct sk_buff *skb)
124{
125 struct nci_core_set_config_rsp *rsp = (void *) skb->data;
126
127 pr_debug("status 0x%x\n", rsp->status);
128
129 nci_req_complete(ndev, rsp->status);
130}
131
122static void nci_rf_disc_map_rsp_packet(struct nci_dev *ndev,
123 struct sk_buff *skb)
124{
125 __u8 status = skb->data[0];
126
127 pr_debug("status 0x%x\n", status);
128
129 nci_req_complete(ndev, status);

--- 59 unchanged lines hidden (view full) ---

189 case NCI_OP_CORE_RESET_RSP:
190 nci_core_reset_rsp_packet(ndev, skb);
191 break;
192
193 case NCI_OP_CORE_INIT_RSP:
194 nci_core_init_rsp_packet(ndev, skb);
195 break;
196
132static void nci_rf_disc_map_rsp_packet(struct nci_dev *ndev,
133 struct sk_buff *skb)
134{
135 __u8 status = skb->data[0];
136
137 pr_debug("status 0x%x\n", status);
138
139 nci_req_complete(ndev, status);

--- 59 unchanged lines hidden (view full) ---

199 case NCI_OP_CORE_RESET_RSP:
200 nci_core_reset_rsp_packet(ndev, skb);
201 break;
202
203 case NCI_OP_CORE_INIT_RSP:
204 nci_core_init_rsp_packet(ndev, skb);
205 break;
206
207 case NCI_OP_CORE_SET_CONFIG_RSP:
208 nci_core_set_config_rsp_packet(ndev, skb);
209 break;
210
197 case NCI_OP_RF_DISCOVER_MAP_RSP:
198 nci_rf_disc_map_rsp_packet(ndev, skb);
199 break;
200
201 case NCI_OP_RF_DISCOVER_RSP:
202 nci_rf_disc_rsp_packet(ndev, skb);
203 break;
204

--- 20 unchanged lines hidden ---
211 case NCI_OP_RF_DISCOVER_MAP_RSP:
212 nci_rf_disc_map_rsp_packet(ndev, skb);
213 break;
214
215 case NCI_OP_RF_DISCOVER_RSP:
216 nci_rf_disc_rsp_packet(ndev, skb);
217 break;
218

--- 20 unchanged lines hidden ---