diff options
author | Marek Belisko <marek.belisko@gmail.com> | 2010-10-15 08:13:02 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-15 15:30:39 -0400 |
commit | b13e39b2f7e7e313e97cd11ee65e5348afe448fb (patch) | |
tree | 519d40bc88b25663bcda08eaf3109dce444d98cd | |
parent | e27d96dd9cfc62300a4d2ba74b487cc8488ab807 (diff) |
staging: ft1000: Remove PSEUDO_HDR typedef usage.
Signed-off-by: Marek Belisko <marek.belisko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c | 6 | ||||
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_download.c | 14 | ||||
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_hw.c | 22 | ||||
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_ioctl.h | 7 | ||||
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_usb.h | 41 |
5 files changed, 27 insertions, 63 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c b/drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c index 3325e8765390..e7ebb8a032b5 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c | |||
@@ -655,7 +655,7 @@ static long ft1000_ChIoctl (struct file *File, unsigned int Command, | |||
655 | //IOCTL_DPRAM_COMMAND dpram_command; | 655 | //IOCTL_DPRAM_COMMAND dpram_command; |
656 | USHORT qtype; | 656 | USHORT qtype; |
657 | USHORT msgsz; | 657 | USHORT msgsz; |
658 | PPSEUDO_HDR ppseudo_hdr; | 658 | struct pseudo_hdr *ppseudo_hdr; |
659 | PUSHORT pmsg; | 659 | PUSHORT pmsg; |
660 | USHORT total_len; | 660 | USHORT total_len; |
661 | USHORT app_index; | 661 | USHORT app_index; |
@@ -768,7 +768,7 @@ static long ft1000_ChIoctl (struct file *File, unsigned int Command, | |||
768 | // Need to put sequence number plus new checksum for message | 768 | // Need to put sequence number plus new checksum for message |
769 | //pmsg = (PUSHORT)&dpram_command.dpram_blk.pseudohdr; | 769 | //pmsg = (PUSHORT)&dpram_command.dpram_blk.pseudohdr; |
770 | pmsg = (PUSHORT)&dpram_data->pseudohdr; | 770 | pmsg = (PUSHORT)&dpram_data->pseudohdr; |
771 | ppseudo_hdr = (PPSEUDO_HDR)pmsg; | 771 | ppseudo_hdr = (struct pseudo_hdr *)pmsg; |
772 | total_len = msgsz+2; | 772 | total_len = msgsz+2; |
773 | if (total_len & 0x1) { | 773 | if (total_len & 0x1) { |
774 | total_len++; | 774 | total_len++; |
@@ -785,7 +785,7 @@ static long ft1000_ChIoctl (struct file *File, unsigned int Command, | |||
785 | //DEBUG("checksum = 0x%x\n", ppseudo_hdr->checksum); | 785 | //DEBUG("checksum = 0x%x\n", ppseudo_hdr->checksum); |
786 | } | 786 | } |
787 | pmsg++; | 787 | pmsg++; |
788 | ppseudo_hdr = (PPSEUDO_HDR)pmsg; | 788 | ppseudo_hdr = (struct pseudo_hdr *)pmsg; |
789 | #if 0 | 789 | #if 0 |
790 | ptr = dpram_data; | 790 | ptr = dpram_data; |
791 | DEBUG("FT1000:ft1000_ChIoctl: Command Send\n"); | 791 | DEBUG("FT1000:ft1000_ChIoctl: Command Send\n"); |
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c index b950634fe011..48eb697129e2 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c | |||
@@ -507,7 +507,7 @@ static void put_request_value(struct ft1000_device *ft1000dev, long lvalue) | |||
507 | //--------------------------------------------------------------------------- | 507 | //--------------------------------------------------------------------------- |
508 | // Function: hdr_checksum | 508 | // Function: hdr_checksum |
509 | // | 509 | // |
510 | // Parameters: PPSEUDO_HDR pHdr - Pseudo header pointer | 510 | // Parameters: struct pseudo_hdr *pHdr - Pseudo header pointer |
511 | // | 511 | // |
512 | // Returns: checksum - success | 512 | // Returns: checksum - success |
513 | // | 513 | // |
@@ -516,7 +516,7 @@ static void put_request_value(struct ft1000_device *ft1000dev, long lvalue) | |||
516 | // Notes: | 516 | // Notes: |
517 | // | 517 | // |
518 | //--------------------------------------------------------------------------- | 518 | //--------------------------------------------------------------------------- |
519 | static USHORT hdr_checksum(PPSEUDO_HDR pHdr) | 519 | static USHORT hdr_checksum(struct pseudo_hdr *pHdr) |
520 | { | 520 | { |
521 | USHORT *usPtr = (USHORT *)pHdr; | 521 | USHORT *usPtr = (USHORT *)pHdr; |
522 | USHORT chksum; | 522 | USHORT chksum; |
@@ -775,7 +775,7 @@ u16 scram_dnldr(struct ft1000_device *ft1000dev, void *pFileStart, ULONG FileLe | |||
775 | u16 Status = STATUS_SUCCESS; | 775 | u16 Status = STATUS_SUCCESS; |
776 | UINT uiState; | 776 | UINT uiState; |
777 | USHORT handshake; | 777 | USHORT handshake; |
778 | PPSEUDO_HDR pHdr; | 778 | struct pseudo_hdr *pHdr; |
779 | USHORT usHdrLength; | 779 | USHORT usHdrLength; |
780 | long word_length; | 780 | long word_length; |
781 | USHORT request; | 781 | USHORT request; |
@@ -1167,7 +1167,7 @@ u16 scram_dnldr(struct ft1000_device *ft1000dev, void *pFileStart, ULONG FileLe | |||
1167 | 1167 | ||
1168 | case STATE_SECTION_PROV: | 1168 | case STATE_SECTION_PROV: |
1169 | DEBUG("FT1000:download:STATE_SECTION_PROV\n"); | 1169 | DEBUG("FT1000:download:STATE_SECTION_PROV\n"); |
1170 | pHdr = (PPSEUDO_HDR)pUcFile; | 1170 | pHdr = (struct pseudo_hdr *)pUcFile; |
1171 | 1171 | ||
1172 | if (pHdr->checksum == hdr_checksum(pHdr)) | 1172 | if (pHdr->checksum == hdr_checksum(pHdr)) |
1173 | { | 1173 | { |
@@ -1179,16 +1179,16 @@ u16 scram_dnldr(struct ft1000_device *ft1000dev, void *pFileStart, ULONG FileLe | |||
1179 | usHdrLength = ntohs(pHdr->length); /* Byte length for PROV records */ | 1179 | usHdrLength = ntohs(pHdr->length); /* Byte length for PROV records */ |
1180 | 1180 | ||
1181 | // Get buffer for provisioning data | 1181 | // Get buffer for provisioning data |
1182 | pbuffer = kmalloc ( (usHdrLength + sizeof(PSEUDO_HDR) ), GFP_ATOMIC ); | 1182 | pbuffer = kmalloc((usHdrLength + sizeof(struct pseudo_hdr)), GFP_ATOMIC); |
1183 | if (pbuffer) { | 1183 | if (pbuffer) { |
1184 | memcpy(pbuffer, (void *)pUcFile, (UINT)(usHdrLength + sizeof(PSEUDO_HDR))); | 1184 | memcpy(pbuffer, (void *)pUcFile, (UINT)(usHdrLength + sizeof(struct pseudo_hdr))); |
1185 | // link provisioning data | 1185 | // link provisioning data |
1186 | pprov_record = kmalloc(sizeof(struct prov_record), GFP_ATOMIC); | 1186 | pprov_record = kmalloc(sizeof(struct prov_record), GFP_ATOMIC); |
1187 | if (pprov_record) { | 1187 | if (pprov_record) { |
1188 | pprov_record->pprov_data = pbuffer; | 1188 | pprov_record->pprov_data = pbuffer; |
1189 | list_add_tail (&pprov_record->list, &pft1000info->prov_list); | 1189 | list_add_tail (&pprov_record->list, &pft1000info->prov_list); |
1190 | // Move to next entry if available | 1190 | // Move to next entry if available |
1191 | pUcFile = (UCHAR *)((unsigned long)pUcFile + (UINT)((usHdrLength + 1) & 0xFFFFFFFE) + sizeof(PSEUDO_HDR)); | 1191 | pUcFile = (UCHAR *)((unsigned long)pUcFile + (UINT)((usHdrLength + 1) & 0xFFFFFFFE) + sizeof(struct pseudo_hdr)); |
1192 | if ( (unsigned long)(pUcFile) - (unsigned long)(pFileStart) >= (unsigned long)FileLength) { | 1192 | if ( (unsigned long)(pUcFile) - (unsigned long)(pFileStart) >= (unsigned long)FileLength) { |
1193 | uiState = STATE_DONE_FILE; | 1193 | uiState = STATE_DONE_FILE; |
1194 | } | 1194 | } |
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c index d2c77f97084d..05b2a4172017 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c | |||
@@ -1440,7 +1440,7 @@ static int ft1000_copy_down_pkt (struct net_device *netdev, u8 *packet, u16 len) | |||
1440 | } | 1440 | } |
1441 | #endif | 1441 | #endif |
1442 | 1442 | ||
1443 | count = sizeof (PSEUDO_HDR) + len; | 1443 | count = sizeof(struct pseudo_hdr) + len; |
1444 | if(count > MAX_BUF_SIZE) | 1444 | if(count > MAX_BUF_SIZE) |
1445 | { | 1445 | { |
1446 | DEBUG("Error:ft1000_copy_down_pkt:Message Size Overflow!\n"); | 1446 | DEBUG("Error:ft1000_copy_down_pkt:Message Size Overflow!\n"); |
@@ -1466,7 +1466,7 @@ static int ft1000_copy_down_pkt (struct net_device *netdev, u8 *packet, u16 len) | |||
1466 | checksum ^= *pTemp ++; | 1466 | checksum ^= *pTemp ++; |
1467 | } | 1467 | } |
1468 | *pTemp++ = checksum; | 1468 | *pTemp++ = checksum; |
1469 | memcpy (&(pFt1000Dev->tx_buf[sizeof(PSEUDO_HDR)]), packet, len); | 1469 | memcpy(&(pFt1000Dev->tx_buf[sizeof(struct pseudo_hdr)]), packet, len); |
1470 | 1470 | ||
1471 | //usb_init_urb(pFt1000Dev->tx_urb); //mbelian | 1471 | //usb_init_urb(pFt1000Dev->tx_urb); //mbelian |
1472 | 1472 | ||
@@ -1685,7 +1685,7 @@ static int ft1000_copy_up_pkt (struct urb *urb) | |||
1685 | 1685 | ||
1686 | 1686 | ||
1687 | 1687 | ||
1688 | memcpy(pbuffer, ft1000dev->rx_buf+sizeof(PSEUDO_HDR), len-sizeof(PSEUDO_HDR)); | 1688 | memcpy(pbuffer, ft1000dev->rx_buf+sizeof(struct pseudo_hdr), len-sizeof(struct pseudo_hdr)); |
1689 | 1689 | ||
1690 | //DEBUG("ft1000_copy_up_pkt: Data passed to Protocol layer\n"); | 1690 | //DEBUG("ft1000_copy_up_pkt: Data passed to Protocol layer\n"); |
1691 | /*for (i=0; i<len+12; i++) | 1691 | /*for (i=0; i<len+12; i++) |
@@ -1997,7 +1997,7 @@ static int ft1000_dsp_prov(void *arg) | |||
1997 | u16 len; | 1997 | u16 len; |
1998 | u16 i=0; | 1998 | u16 i=0; |
1999 | struct prov_record *ptr; | 1999 | struct prov_record *ptr; |
2000 | PPSEUDO_HDR ppseudo_hdr; | 2000 | struct pseudo_hdr *ppseudo_hdr; |
2001 | PUSHORT pmsg; | 2001 | PUSHORT pmsg; |
2002 | u16 status; | 2002 | u16 status; |
2003 | USHORT TempShortBuf [256]; | 2003 | USHORT TempShortBuf [256]; |
@@ -2039,7 +2039,7 @@ static int ft1000_dsp_prov(void *arg) | |||
2039 | //len = htons(len); | 2039 | //len = htons(len); |
2040 | 2040 | ||
2041 | pmsg = (PUSHORT)ptr->pprov_data; | 2041 | pmsg = (PUSHORT)ptr->pprov_data; |
2042 | ppseudo_hdr = (PPSEUDO_HDR)pmsg; | 2042 | ppseudo_hdr = (struct pseudo_hdr *)pmsg; |
2043 | // Insert slow queue sequence number | 2043 | // Insert slow queue sequence number |
2044 | ppseudo_hdr->seq_num = info->squeseqnum++; | 2044 | ppseudo_hdr->seq_num = info->squeseqnum++; |
2045 | ppseudo_hdr->portsrc = 0; | 2045 | ppseudo_hdr->portsrc = 0; |
@@ -2084,7 +2084,7 @@ static int ft1000_proc_drvmsg (struct ft1000_device *dev, u16 size) { | |||
2084 | struct dsp_init_msg *pdspinitmsg; | 2084 | struct dsp_init_msg *pdspinitmsg; |
2085 | PDRVMSG pdrvmsg; | 2085 | PDRVMSG pdrvmsg; |
2086 | u16 i; | 2086 | u16 i; |
2087 | PPSEUDO_HDR ppseudo_hdr; | 2087 | struct pseudo_hdr *ppseudo_hdr; |
2088 | PUSHORT pmsg; | 2088 | PUSHORT pmsg; |
2089 | u16 status; | 2089 | u16 status; |
2090 | //struct timeval tv; //mbelian | 2090 | //struct timeval tv; //mbelian |
@@ -2255,7 +2255,7 @@ static int ft1000_proc_drvmsg (struct ft1000_device *dev, u16 size) { | |||
2255 | pmsg = (PUSHORT)info->DSPInfoBlk; | 2255 | pmsg = (PUSHORT)info->DSPInfoBlk; |
2256 | *pmsg++ = 0; | 2256 | *pmsg++ = 0; |
2257 | *pmsg++ = htons(info->DSPInfoBlklen+20+info->DSPInfoBlklen); | 2257 | *pmsg++ = htons(info->DSPInfoBlklen+20+info->DSPInfoBlklen); |
2258 | ppseudo_hdr = (PPSEUDO_HDR)(PUSHORT)&info->DSPInfoBlk[2]; | 2258 | ppseudo_hdr = (struct pseudo_hdr *)(PUSHORT)&info->DSPInfoBlk[2]; |
2259 | ppseudo_hdr->length = htons(info->DSPInfoBlklen+4+info->DSPInfoBlklen); | 2259 | ppseudo_hdr->length = htons(info->DSPInfoBlklen+4+info->DSPInfoBlklen); |
2260 | ppseudo_hdr->source = 0x10; | 2260 | ppseudo_hdr->source = 0x10; |
2261 | ppseudo_hdr->destination = 0x20; | 2261 | ppseudo_hdr->destination = 0x20; |
@@ -2303,7 +2303,7 @@ static int ft1000_proc_drvmsg (struct ft1000_device *dev, u16 size) { | |||
2303 | // Put message into Slow Queue | 2303 | // Put message into Slow Queue |
2304 | // Form Pseudo header | 2304 | // Form Pseudo header |
2305 | pmsg = (PUSHORT)&tempbuffer[0]; | 2305 | pmsg = (PUSHORT)&tempbuffer[0]; |
2306 | ppseudo_hdr = (PPSEUDO_HDR)pmsg; | 2306 | ppseudo_hdr = (struct pseudo_hdr *)pmsg; |
2307 | ppseudo_hdr->length = htons(0x0012); | 2307 | ppseudo_hdr->length = htons(0x0012); |
2308 | ppseudo_hdr->source = 0x10; | 2308 | ppseudo_hdr->source = 0x10; |
2309 | ppseudo_hdr->destination = 0x20; | 2309 | ppseudo_hdr->destination = 0x20; |
@@ -2377,7 +2377,7 @@ int ft1000_poll(void* dev_id) { | |||
2377 | USHORT portid; | 2377 | USHORT portid; |
2378 | u16 nxtph; | 2378 | u16 nxtph; |
2379 | PDPRAM_BLK pdpram_blk; | 2379 | PDPRAM_BLK pdpram_blk; |
2380 | PPSEUDO_HDR ppseudo_hdr; | 2380 | struct pseudo_hdr *ppseudo_hdr; |
2381 | unsigned long flags; | 2381 | unsigned long flags; |
2382 | 2382 | ||
2383 | //DEBUG("Enter ft1000_poll...\n"); | 2383 | //DEBUG("Enter ft1000_poll...\n"); |
@@ -2431,7 +2431,7 @@ int ft1000_poll(void* dev_id) { | |||
2431 | pdpram_blk = ft1000_get_buffer (&freercvpool); | 2431 | pdpram_blk = ft1000_get_buffer (&freercvpool); |
2432 | if (pdpram_blk != NULL) { | 2432 | if (pdpram_blk != NULL) { |
2433 | if ( ft1000_receive_cmd(dev, pdpram_blk->pbuffer, MAX_CMD_SQSIZE, &nxtph) ) { | 2433 | if ( ft1000_receive_cmd(dev, pdpram_blk->pbuffer, MAX_CMD_SQSIZE, &nxtph) ) { |
2434 | ppseudo_hdr = (PPSEUDO_HDR)pdpram_blk->pbuffer; | 2434 | ppseudo_hdr = (struct pseudo_hdr *)pdpram_blk->pbuffer; |
2435 | // Put message into the appropriate application block | 2435 | // Put message into the appropriate application block |
2436 | info->app_info[i].nRxMsg++; | 2436 | info->app_info[i].nRxMsg++; |
2437 | spin_lock_irqsave(&free_buff_lock, flags); | 2437 | spin_lock_irqsave(&free_buff_lock, flags); |
@@ -2461,7 +2461,7 @@ int ft1000_poll(void* dev_id) { | |||
2461 | //DEBUG("Memory allocated = 0x%8x\n", (u32)pdpram_blk); | 2461 | //DEBUG("Memory allocated = 0x%8x\n", (u32)pdpram_blk); |
2462 | if (pdpram_blk != NULL) { | 2462 | if (pdpram_blk != NULL) { |
2463 | if ( ft1000_receive_cmd(dev, pdpram_blk->pbuffer, MAX_CMD_SQSIZE, &nxtph) ) { | 2463 | if ( ft1000_receive_cmd(dev, pdpram_blk->pbuffer, MAX_CMD_SQSIZE, &nxtph) ) { |
2464 | ppseudo_hdr = (PPSEUDO_HDR)pdpram_blk->pbuffer; | 2464 | ppseudo_hdr = (struct pseudo_hdr *)pdpram_blk->pbuffer; |
2465 | // Search for correct application block | 2465 | // Search for correct application block |
2466 | for (i=0; i<MAX_NUM_APP; i++) { | 2466 | for (i=0; i<MAX_NUM_APP; i++) { |
2467 | if (info->app_info[i].app_id == ppseudo_hdr->portdest) { | 2467 | if (info->app_info[i].app_id == ppseudo_hdr->portdest) { |
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_ioctl.h b/drivers/staging/ft1000/ft1000-usb/ft1000_ioctl.h index e7d3ec8869ac..3f72d5bb3f92 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_ioctl.h +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_ioctl.h | |||
@@ -36,8 +36,7 @@ | |||
36 | #define MAX_DNLD_BLKSZ 1024 | 36 | #define MAX_DNLD_BLKSZ 1024 |
37 | 37 | ||
38 | // Standard Flarion Pseudo header | 38 | // Standard Flarion Pseudo header |
39 | typedef struct _PSEUDO_HDR | 39 | struct pseudo_hdr { |
40 | { | ||
41 | unsigned short length; //length of msg body | 40 | unsigned short length; //length of msg body |
42 | unsigned char source; //source address (0x10=Host 0x20=DSP) | 41 | unsigned char source; //source address (0x10=Host 0x20=DSP) |
43 | unsigned char destination; //destination address (refer to source address) | 42 | unsigned char destination; //destination address (refer to source address) |
@@ -57,7 +56,7 @@ typedef struct _PSEUDO_HDR | |||
57 | unsigned char rsvd2; //reserved | 56 | unsigned char rsvd2; //reserved |
58 | unsigned short qos_class; //Quality of Service class (Not applicable on Mobile) | 57 | unsigned short qos_class; //Quality of Service class (Not applicable on Mobile) |
59 | unsigned short checksum; //Psuedo header checksum | 58 | unsigned short checksum; //Psuedo header checksum |
60 | } __attribute__ ((packed)) PSEUDO_HDR, *PPSEUDO_HDR; | 59 | } __attribute__ ((packed)); |
61 | 60 | ||
62 | typedef struct _IOCTL_GET_VER | 61 | typedef struct _IOCTL_GET_VER |
63 | { | 62 | { |
@@ -106,7 +105,7 @@ typedef struct _IOCTL_GET_DSP_STAT | |||
106 | typedef struct _IOCTL_DPRAM_BLK | 105 | typedef struct _IOCTL_DPRAM_BLK |
107 | { | 106 | { |
108 | unsigned short total_len; | 107 | unsigned short total_len; |
109 | PSEUDO_HDR pseudohdr; | 108 | struct pseudo_hdr pseudohdr; |
110 | unsigned char buffer[1780]; | 109 | unsigned char buffer[1780]; |
111 | } __attribute__ ((packed)) IOCTL_DPRAM_BLK, *PIOCTL_DPRAM_BLK; | 110 | } __attribute__ ((packed)) IOCTL_DPRAM_BLK, *PIOCTL_DPRAM_BLK; |
112 | 111 | ||
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.h b/drivers/staging/ft1000/ft1000-usb/ft1000_usb.h index 0e2c94b2e8a4..b2a70facf967 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.h +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_usb.h | |||
@@ -52,7 +52,7 @@ | |||
52 | 52 | ||
53 | 53 | ||
54 | struct media_msg { | 54 | struct media_msg { |
55 | PSEUDO_HDR pseudo; | 55 | struct pseudo_hdr pseudo; |
56 | u16 type; | 56 | u16 type; |
57 | u16 length; | 57 | u16 length; |
58 | u16 state; | 58 | u16 state; |
@@ -64,7 +64,7 @@ struct media_msg { | |||
64 | } __attribute__ ((packed)); | 64 | } __attribute__ ((packed)); |
65 | 65 | ||
66 | struct dsp_init_msg { | 66 | struct dsp_init_msg { |
67 | PSEUDO_HDR pseudo; | 67 | struct pseudo_hdr pseudo; |
68 | u16 type; | 68 | u16 type; |
69 | u16 length; | 69 | u16 length; |
70 | u8 DspVer[DSPVERSZ]; // DSP version number | 70 | u8 DspVer[DSPVERSZ]; // DSP version number |
@@ -455,43 +455,8 @@ struct prov_record { | |||
455 | 455 | ||
456 | #define MAX_BUF_SIZE 4096 | 456 | #define MAX_BUF_SIZE 4096 |
457 | 457 | ||
458 | |||
459 | #if 0 //Removed by Jim | ||
460 | typedef struct _PSEUDO_HDR | ||
461 | |||
462 | { | ||
463 | |||
464 | unsigned short length; | ||
465 | |||
466 | unsigned char source; | ||
467 | |||
468 | unsigned char destination; | ||
469 | |||
470 | unsigned char portdest; | ||
471 | |||
472 | unsigned char portsrc; | ||
473 | |||
474 | unsigned short sh_str_id; | ||
475 | |||
476 | unsigned char control; | ||
477 | |||
478 | unsigned char rsvd1; | ||
479 | |||
480 | unsigned char seq_num; | ||
481 | |||
482 | unsigned char rsvd2; | ||
483 | |||
484 | unsigned short qos_class; | ||
485 | |||
486 | unsigned short checksum; | ||
487 | |||
488 | |||
489 | |||
490 | } PSEUDO_HDR, *PPSEUDO_HDR; | ||
491 | #endif //end of Jim | ||
492 | |||
493 | typedef struct _DRVMSG { | 458 | typedef struct _DRVMSG { |
494 | PSEUDO_HDR pseudo; | 459 | struct pseudo_hdr pseudo; |
495 | u16 type; | 460 | u16 type; |
496 | u16 length; | 461 | u16 length; |
497 | u8 data[0]; | 462 | u8 data[0]; |