USHORT handshake;
PPSEUDO_HDR pHdr;
USHORT usHdrLength;
- //PPROV_RECORD pProvRecord;
long word_length;
USHORT request;
USHORT temp;
USHORT dpram = 0;
PUCHAR pbuffer;
- PPROV_RECORD pprov_record;
+ struct prov_record *pprov_record;
FT1000_INFO *pft1000info = netdev_priv(ft1000dev->net);
DEBUG("Entered scram_dnldr...\n");
if (pbuffer) {
memcpy(pbuffer, (void *)pUcFile, (UINT)(usHdrLength + sizeof(PSEUDO_HDR)));
// link provisioning data
- pprov_record = kmalloc( sizeof(PROV_RECORD), GFP_ATOMIC );
+ pprov_record = kmalloc(sizeof(struct prov_record), GFP_ATOMIC);
if (pprov_record) {
pprov_record->pprov_data = pbuffer;
list_add_tail (&pprov_record->list, &pft1000info->prov_list);
FT1000_INFO *info = netdev_priv(dev);
struct ft1000_device *ft1000dev = info->pFt1000Dev;
u16 tempword;
- PPROV_RECORD ptr;
+ struct prov_record *ptr;
DEBUG("ft1000_hw:ft1000_reset_card called.....\n");
// Make sure we free any memory reserve for provisioning
while (list_empty(&info->prov_list) == 0) {
DEBUG("ft1000_hw:ft1000_reset_card:deleting provisioning record\n");
- ptr = list_entry(info->prov_list.next, PROV_RECORD, list);
+ ptr = list_entry(info->prov_list.next, struct prov_record, list);
list_del(&ptr->list);
kfree(ptr->pprov_data);
kfree(ptr);
u16 tempword;
u16 len;
u16 i=0;
- PPROV_RECORD ptr;
+ struct prov_record *ptr;
PPSEUDO_HDR ppseudo_hdr;
PUSHORT pmsg;
u16 status;
DEBUG("*** Provision Data Sent to DSP\n");
// Send provisioning data
- ptr = list_entry(info->prov_list.next, PROV_RECORD, list);
+ ptr = list_entry(info->prov_list.next, struct prov_record, list);
len = *(u16 *)ptr->pprov_data;
len = htons(len);
len += PSEUDOSZ;
struct list_head app_sqlist; // link list of msgs for applicaton on slow queue
} __attribute__((packed));
-typedef struct _PROV_RECORD {
- struct list_head list;
- u8 *pprov_data;
-} PROV_RECORD, *PPROV_RECORD;
+struct prov_record {
+ struct list_head list;
+ u8 *pprov_data;
+};
/*end of Jim*/
#define DEBUG(args...) printk(KERN_INFO args)