Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: ced1401: Fixes white spaces and indentations.

Fixes white spaces and indentations warnings from checkpatch.

Signed-off-by: Elena Ufimtseva <ufimtseva@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Elena Ufimtseva and committed by
Greg Kroah-Hartman
d9f8374b d1cc1b86

+363 -364
+19 -20
drivers/staging/ced1401/machine.h
··· 77 77 #endif 78 78 79 79 #if defined(LINUX) || defined(MAXOSX) 80 - #define FAR 80 + #define FAR 81 81 82 - typedef int BOOL; /* To match Windows */ 83 - typedef char *LPSTR; 84 - typedef const char *LPCSTR; 85 - typedef unsigned short WORD; 86 - typedef unsigned int DWORD; 87 - typedef unsigned char BYTE; 88 - typedef BYTE BOOLEAN; 89 - typedef unsigned char UCHAR; 90 - #define __packed __attribute__((packed)) 91 - typedef BYTE *LPBYTE; 92 - #define HIWORD(x) (WORD)(((x)>>16) & 0xffff) 93 - #define LOWORD(x) (WORD)((x) & 0xffff) 82 + typedef int BOOL; /* To match Windows */ 83 + typedef char *LPSTR; 84 + typedef const char *LPCSTR; 85 + typedef unsigned short WORD; 86 + typedef unsigned int DWORD; 87 + typedef unsigned char BYTE; 88 + typedef BYTE BOOLEAN; 89 + typedef unsigned char UCHAR; 90 + #define __packed __attribute__((packed)) 91 + typedef BYTE *LPBYTE; 92 + #define HIWORD(x) (WORD)(((x)>>16) & 0xffff) 93 + #define LOWORD(x) (WORD)((x) & 0xffff) 94 94 #endif 95 95 96 96 #ifdef _IS_WINDOWS_ ··· 104 104 ** a synonym. 105 105 */ 106 106 #ifdef GNUC 107 - #define DllExport __attribute__((dllexport)) 108 - #define DllImport __attribute__((dllimport)) 107 + #define DllExport __attribute__((dllexport)) 108 + #define DllImport __attribute__((dllimport)) 109 109 #endif 110 110 111 111 #ifndef DllExport 112 112 #ifdef _IS_WINDOWS_ 113 - #define DllExport __declspec(dllexport) 114 - #define DllImport __declspec(dllimport) 113 + #define DllExport __declspec(dllexport) 114 + #define DllImport __declspec(dllimport) 115 115 #else 116 - #define DllExport 117 - #define DllImport 116 + #define DllExport 117 + #define DllImport 118 118 #endif 119 119 #endif /* _IS_WINDOWS_ */ 120 120 121 - 122 121 #ifndef TRUE 123 122 #define TRUE 1 124 123 #define FALSE 0
+76 -76
drivers/staging/ced1401/usb1401.h
··· 95 95 /* A structure holding information about a block of memory for use in circular transfers */ 96 96 typedef struct circBlk 97 97 { 98 - volatile UINT dwOffset; /* Offset within area of block start */ 99 - volatile UINT dwSize; /* Size of the block, in bytes (0 = unused) */ 98 + volatile UINT dwOffset; /* Offset within area of block start */ 99 + volatile UINT dwSize; /* Size of the block, in bytes (0 = unused) */ 100 100 } CIRCBLK; 101 101 102 102 /* A structure holding all of the information about a transfer area - an area of */ 103 103 /* memory set up for use either as a source or destination in DMA transfers. */ 104 104 typedef struct transarea 105 105 { 106 - void *lpvBuff; /* User address of xfer area saved for completeness */ 107 - UINT dwBaseOffset; /* offset to start of xfer area in first page */ 108 - UINT dwLength; /* Length of xfer area, in bytes */ 109 - struct page **pPages; /* Points at array of locked down pages */ 110 - int nPages; /* number of pages that are locked down */ 111 - bool bUsed; /* Is this structure in use? */ 112 - bool bCircular; /* Is this area for circular transfers? */ 113 - bool bCircToHost; /* Flag for direction of circular transfer */ 114 - bool bEventToHost; /* Set event on transfer to host? */ 115 - int iWakeUp; /* Set 1 on event, cleared by TestEvent() */ 116 - UINT dwEventSt; /* Defines section within xfer area for... */ 117 - UINT dwEventSz; /* ...notification by the event SZ is 0 if unset */ 118 - CIRCBLK aBlocks[2]; /* Info on a pair of circular blocks */ 119 - wait_queue_head_t wqEvent; /* The wait queue for events in this area MUST BE LAST */ 106 + void *lpvBuff; /* User address of xfer area saved for completeness */ 107 + UINT dwBaseOffset; /* offset to start of xfer area in first page */ 108 + UINT dwLength; /* Length of xfer area, in bytes */ 109 + struct page **pPages; /* Points at array of locked down pages */ 110 + int nPages; /* number of pages that are locked down */ 111 + bool bUsed; /* Is this structure in use? */ 112 + bool bCircular; /* Is this area for circular transfers? */ 113 + bool bCircToHost; /* Flag for direction of circular transfer */ 114 + bool bEventToHost; /* Set event on transfer to host? */ 115 + int iWakeUp; /* Set 1 on event, cleared by TestEvent() */ 116 + UINT dwEventSt; /* Defines section within xfer area for... */ 117 + UINT dwEventSz; /* ...notification by the event SZ is 0 if unset */ 118 + CIRCBLK aBlocks[2]; /* Info on a pair of circular blocks */ 119 + wait_queue_head_t wqEvent; /* The wait queue for events in this area MUST BE LAST */ 120 120 } TRANSAREA; 121 121 122 122 /* The DMADESC structure is used to hold information on the transfer in progress. It */ 123 123 /* is set up by ReadDMAInfo, using information sent by the 1401 in an escape sequence. */ 124 124 typedef struct dmadesc 125 125 { 126 - unsigned short wTransType; /* transfer type as TM_xxx above */ 127 - unsigned short wIdent; /* identifier word */ 128 - unsigned int dwSize; /* bytes to transfer */ 129 - unsigned int dwOffset; /* offset into transfer area for trans */ 130 - bool bOutWard; /* true when data is going TO 1401 */ 126 + unsigned short wTransType; /* transfer type as TM_xxx above */ 127 + unsigned short wIdent; /* identifier word */ 128 + unsigned int dwSize; /* bytes to transfer */ 129 + unsigned int dwOffset; /* offset into transfer area for trans */ 130 + bool bOutWard; /* true when data is going TO 1401 */ 131 131 } DMADESC; 132 132 133 133 #define INBUF_SZ 256 /* input buffer size */ ··· 138 138 /* can to the Windows driver to help in our understanding of what is going on. */ 139 139 typedef struct _DEVICE_EXTENSION 140 140 { 141 - char inputBuffer[INBUF_SZ]; /* The two buffers */ 142 - char outputBuffer[OUTBUF_SZ]; /* accessed by the host functions */ 143 - volatile unsigned int dwNumInput; /* num of chars in input buffer */ 144 - volatile unsigned int dwInBuffGet; /* where to get from input buffer */ 145 - volatile unsigned int dwInBuffPut; /* where to put into input buffer */ 146 - volatile unsigned int dwNumOutput; /* num of chars in output buffer */ 147 - volatile unsigned int dwOutBuffGet; /* where to get from output buffer*/ 148 - volatile unsigned int dwOutBuffPut; /* where to put into output buffer*/ 141 + char inputBuffer[INBUF_SZ]; /* The two buffers */ 142 + char outputBuffer[OUTBUF_SZ]; /* accessed by the host functions */ 143 + volatile unsigned int dwNumInput; /* num of chars in input buffer */ 144 + volatile unsigned int dwInBuffGet; /* where to get from input buffer */ 145 + volatile unsigned int dwInBuffPut; /* where to put into input buffer */ 146 + volatile unsigned int dwNumOutput; /* num of chars in output buffer */ 147 + volatile unsigned int dwOutBuffGet; /* where to get from output buffer*/ 148 + volatile unsigned int dwOutBuffPut; /* where to put into output buffer*/ 149 149 150 - volatile bool bSendCharsPending; /* Flag to indicate sendchar active */ 151 - volatile bool bReadCharsPending; /* Flag to indicate a read is primed */ 152 - char *pCoherCharOut; /* special aligned buffer for chars to 1401 */ 153 - struct urb *pUrbCharOut; /* urb used for chars to 1401 */ 154 - char *pCoherCharIn; /* special aligned buffer for chars to host */ 155 - struct urb *pUrbCharIn; /* urb used for chars to host */ 150 + volatile bool bSendCharsPending; /* Flag to indicate sendchar active */ 151 + volatile bool bReadCharsPending; /* Flag to indicate a read is primed */ 152 + char *pCoherCharOut; /* special aligned buffer for chars to 1401 */ 153 + struct urb *pUrbCharOut; /* urb used for chars to 1401 */ 154 + char *pCoherCharIn; /* special aligned buffer for chars to host */ 155 + struct urb *pUrbCharIn; /* urb used for chars to host */ 156 156 157 - spinlock_t charOutLock; /* to protect the outputBuffer and outputting */ 158 - spinlock_t charInLock; /* to protect the inputBuffer and char reads */ 159 - __u8 bInterval; /* Interrupt end point interval */ 157 + spinlock_t charOutLock; /* to protect the outputBuffer and outputting */ 158 + spinlock_t charInLock; /* to protect the inputBuffer and char reads */ 159 + __u8 bInterval; /* Interrupt end point interval */ 160 160 161 - volatile unsigned int dwDMAFlag; /* state of DMA */ 162 - TRANSAREA rTransDef[MAX_TRANSAREAS];/* transfer area info */ 163 - volatile DMADESC rDMAInfo; /* info on current DMA transfer */ 164 - volatile bool bXFerWaiting; /* Flag set if DMA transfer stalled */ 165 - volatile bool bInDrawDown; /* Flag that we want to halt transfers */ 161 + volatile unsigned int dwDMAFlag; /* state of DMA */ 162 + TRANSAREA rTransDef[MAX_TRANSAREAS];/* transfer area info */ 163 + volatile DMADESC rDMAInfo; /* info on current DMA transfer */ 164 + volatile bool bXFerWaiting; /* Flag set if DMA transfer stalled */ 165 + volatile bool bInDrawDown; /* Flag that we want to halt transfers */ 166 166 167 - /* Parameters relating to a block read\write that is in progress. Some of these values */ 168 - /* are equivalent to values in rDMAInfo. The values here are those in use, while those */ 169 - /* in rDMAInfo are those received from the 1401 via an escape sequence. If another */ 170 - /* escape sequence arrives before the previous xfer ends, rDMAInfo values are updated while these */ 171 - /* are used to finish off the current transfer. */ 172 - volatile short StagedId; /* The transfer area id for this transfer */ 173 - volatile bool StagedRead; /* Flag TRUE for read from 1401, FALSE for write */ 174 - volatile unsigned int StagedLength; /* Total length of this transfer */ 175 - volatile unsigned int StagedOffset; /* Offset within memory area for transfer start */ 176 - volatile unsigned int StagedDone; /* Bytes transferred so far */ 177 - volatile bool bStagedUrbPending; /* Flag to indicate active */ 178 - char *pCoherStagedIO; /* buffer used for block transfers */ 179 - struct urb *pStagedUrb; /* The URB to use */ 180 - spinlock_t stagedLock; /* protects ReadWriteMem() and circular buffer stuff */ 167 + /* Parameters relating to a block read\write that is in progress. Some of these values */ 168 + /* are equivalent to values in rDMAInfo. The values here are those in use, while those */ 169 + /* in rDMAInfo are those received from the 1401 via an escape sequence. If another */ 170 + /* escape sequence arrives before the previous xfer ends, rDMAInfo values are updated while these */ 171 + /* are used to finish off the current transfer. */ 172 + volatile short StagedId; /* The transfer area id for this transfer */ 173 + volatile bool StagedRead; /* Flag TRUE for read from 1401, FALSE for write */ 174 + volatile unsigned int StagedLength; /* Total length of this transfer */ 175 + volatile unsigned int StagedOffset; /* Offset within memory area for transfer start */ 176 + volatile unsigned int StagedDone; /* Bytes transferred so far */ 177 + volatile bool bStagedUrbPending; /* Flag to indicate active */ 178 + char *pCoherStagedIO; /* buffer used for block transfers */ 179 + struct urb *pStagedUrb; /* The URB to use */ 180 + spinlock_t stagedLock; /* protects ReadWriteMem() and circular buffer stuff */ 181 181 182 - short s1401Type; /* type of 1401 attached */ 183 - short sCurrentState; /* current error state */ 184 - bool bIsUSB2; /* type of the interface we connect to */ 185 - bool bForceReset; /* Flag to make sure we get a real reset */ 186 - __u32 statBuf[2]; /* buffer for 1401 state info */ 182 + short s1401Type; /* type of 1401 attached */ 183 + short sCurrentState; /* current error state */ 184 + bool bIsUSB2; /* type of the interface we connect to */ 185 + bool bForceReset; /* Flag to make sure we get a real reset */ 186 + __u32 statBuf[2]; /* buffer for 1401 state info */ 187 187 188 - unsigned long ulSelfTestTime; /* used to timeout self test */ 188 + unsigned long ulSelfTestTime; /* used to timeout self test */ 189 189 190 - int nPipes; /* Should be 3 or 4 depending on 1401 usb chip */ 191 - int bPipeError[4]; /* set non-zero if an error on one of the pipe */ 192 - __u8 epAddr[4]; /* addresses of the 3/4 end points */ 190 + int nPipes; /* Should be 3 or 4 depending on 1401 usb chip */ 191 + int bPipeError[4]; /* set non-zero if an error on one of the pipe */ 192 + __u8 epAddr[4]; /* addresses of the 3/4 end points */ 193 193 194 - struct usb_device *udev; /* the usb device for this device */ 195 - struct usb_interface *interface; /* the interface for this device, NULL if removed */ 196 - struct usb_anchor submitted; /* in case we need to retract our submissions */ 197 - struct mutex io_mutex; /* synchronize I/O with disconnect, one user-mode caller at a time */ 194 + struct usb_device *udev; /* the usb device for this device */ 195 + struct usb_interface *interface; /* the interface for this device, NULL if removed */ 196 + struct usb_anchor submitted; /* in case we need to retract our submissions */ 197 + struct mutex io_mutex; /* synchronize I/O with disconnect, one user-mode caller at a time */ 198 198 199 - int errors; /* the last request tanked */ 200 - int open_count; /* count the number of openers */ 201 - spinlock_t err_lock; /* lock for errors */ 202 - struct kref kref; 203 - }DEVICE_EXTENSION, *PDEVICE_EXTENSION; 199 + int errors; /* the last request tanked */ 200 + int open_count; /* count the number of openers */ 201 + spinlock_t err_lock; /* lock for errors */ 202 + struct kref kref; 203 + } DEVICE_EXTENSION, *PDEVICE_EXTENSION; 204 204 #define to_DEVICE_EXTENSION(d) container_of(d, DEVICE_EXTENSION, kref) 205 205 206 206 /* Definitions of routimes used between compilation object files */ ··· 209 209 extern int SendChars(DEVICE_EXTENSION *pdx); 210 210 extern void ced_draw_down(DEVICE_EXTENSION *pdx); 211 211 extern int ReadWriteMem(DEVICE_EXTENSION *pdx, bool Read, unsigned short wIdent, 212 - unsigned int dwOffs, unsigned int dwLen); 212 + unsigned int dwOffs, unsigned int dwLen); 213 213 214 214 /* in ced_ioc.c */ 215 215 extern int ClearArea(DEVICE_EXTENSION *pdx, int nArea);
+67 -67
drivers/staging/ced1401/use1401.h
··· 157 157 158 158 typedef struct /* used for U14_GetTransfer results */ 159 159 { /* Info on a single mapped block */ 160 - U14LONG physical; 161 - U14LONG size; 160 + U14LONG physical; 161 + U14LONG size; 162 162 } TXENTRY; 163 163 164 164 typedef struct TGetTxBlock /* used for U14_GetTransfer results */ 165 165 { /* matches structure in VXD */ 166 - U14LONG size; 167 - U14LONG linear; 168 - short seg; 169 - short reserved; 170 - short avail; /* number of available entries */ 171 - short used; /* number of used entries */ 172 - TXENTRY entries[GET_TX_MAXENTRIES]; /* Array of mapped block info */ 166 + U14LONG size; 167 + U14LONG linear; 168 + short seg; 169 + short reserved; 170 + short avail; /* number of available entries */ 171 + short used; /* number of used entries */ 172 + TXENTRY entries[GET_TX_MAXENTRIES]; /* Array of mapped block info */ 173 173 } TGET_TX_BLOCK; 174 174 175 175 typedef TGET_TX_BLOCK *LPGET_TX_BLOCK; ··· 180 180 #ifdef LINUX 181 181 typedef struct /* used for U14_GetTransfer results */ 182 182 { /* Info on a single mapped block */ 183 - long long physical; 184 - long size; 183 + long long physical; 184 + long size; 185 185 } TXENTRY; 186 186 187 187 typedef struct TGetTxBlock /* used for U14_GetTransfer results */ 188 188 { /* matches structure in VXD */ 189 - long long linear; /* linear address */ 190 - long size; /* total size of the mapped area, holds id when called */ 191 - short seg; /* segment of the address for Win16 */ 192 - short reserved; 193 - short avail; /* number of available entries */ 194 - short used; /* number of used entries */ 195 - TXENTRY entries[GET_TX_MAXENTRIES]; /* Array of mapped block info */ 189 + long long linear; /* linear address */ 190 + long size; /* total size of the mapped area, holds id when called */ 191 + short seg; /* segment of the address for Win16 */ 192 + short reserved; 193 + short avail; /* number of available entries */ 194 + short used; /* number of used entries */ 195 + TXENTRY entries[GET_TX_MAXENTRIES]; /* Array of mapped block info */ 196 196 } TGET_TX_BLOCK; 197 197 #endif 198 198 ··· 201 201 #endif 202 202 203 203 U14API(int) U14WhenToTimeOut(short hand); /* when to timeout in ms */ 204 - U14API(short) U14PassedTime(int iTime); /* non-zero if iTime passed */ 204 + U14API(short) U14PassedTime(int iTime); /* non-zero if iTime passed */ 205 205 206 - U14API(short) U14LastErrCode(short hand); 206 + U14API(short) U14LastErrCode(short hand); 207 207 208 - U14API(short) U14Open1401(short n1401); 209 - U14API(short) U14Close1401(short hand); 210 - U14API(short) U14Reset1401(short hand); 211 - U14API(short) U14ForceReset(short hand); 212 - U14API(short) U14TypeOf1401(short hand); 213 - U14API(short) U14NameOf1401(short hand, char *pBuf, WORD wMax); 208 + U14API(short) U14Open1401(short n1401); 209 + U14API(short) U14Close1401(short hand); 210 + U14API(short) U14Reset1401(short hand); 211 + U14API(short) U14ForceReset(short hand); 212 + U14API(short) U14TypeOf1401(short hand); 213 + U14API(short) U14NameOf1401(short hand, char *pBuf, WORD wMax); 214 214 215 - U14API(short) U14Stat1401(short hand); 216 - U14API(short) U14CharCount(short hand); 217 - U14API(short) U14LineCount(short hand); 215 + U14API(short) U14Stat1401(short hand); 216 + U14API(short) U14CharCount(short hand); 217 + U14API(short) U14LineCount(short hand); 218 218 219 - U14API(short) U14SendString(short hand, const char *pString); 220 - U14API(short) U14GetString(short hand, char *pBuffer, WORD wMaxLen); 221 - U14API(short) U14SendChar(short hand, char cChar); 222 - U14API(short) U14GetChar(short hand, char *pcChar); 219 + U14API(short) U14SendString(short hand, const char *pString); 220 + U14API(short) U14GetString(short hand, char *pBuffer, WORD wMaxLen); 221 + U14API(short) U14SendChar(short hand, char cChar); 222 + U14API(short) U14GetChar(short hand, char *pcChar); 223 223 224 - U14API(short) U14LdCmd(short hand, const char *command); 224 + U14API(short) U14LdCmd(short hand, const char *command); 225 225 U14API(DWORD) U14Ld(short hand, const char *vl, const char *str); 226 226 227 - U14API(short) U14SetTransArea(short hand, WORD wArea, void *pvBuff, 228 - DWORD dwLength, short eSz); 229 - U14API(short) U14UnSetTransfer(short hand, WORD wArea); 230 - U14API(short) U14SetTransferEvent(short hand, WORD wArea, BOOL bEvent, 231 - BOOL bToHost, DWORD dwStart, DWORD dwLength); 227 + U14API(short) U14SetTransArea(short hand, WORD wArea, void *pvBuff, 228 + DWORD dwLength, short eSz); 229 + U14API(short) U14UnSetTransfer(short hand, WORD wArea); 230 + U14API(short) U14SetTransferEvent(short hand, WORD wArea, BOOL bEvent, 231 + BOOL bToHost, DWORD dwStart, DWORD dwLength); 232 232 U14API(int) U14TestTransferEvent(short hand, WORD wArea); 233 233 U14API(int) U14WaitTransferEvent(short hand, WORD wArea, int msTimeOut); 234 - U14API(short) U14GetTransfer(short hand, TGET_TX_BLOCK *pTransBlock); 234 + U14API(short) U14GetTransfer(short hand, TGET_TX_BLOCK *pTransBlock); 235 235 236 - U14API(short) U14ToHost(short hand, char *pAddrHost,DWORD dwSize,DWORD dw1401, 237 - short eSz); 238 - U14API(short) U14To1401(short hand, const char *pAddrHost,DWORD dwSize,DWORD dw1401, 239 - short eSz); 236 + U14API(short) U14ToHost(short hand, char *pAddrHost, DWORD dwSize, DWORD dw1401, 237 + short eSz); 238 + U14API(short) U14To1401(short hand, const char *pAddrHost, DWORD dwSize, DWORD dw1401, 239 + short eSz); 240 240 241 - U14API(short) U14SetCircular(short hand, WORD wArea, BOOL bToHost, void *pvBuff, 242 - DWORD dwLength); 241 + U14API(short) U14SetCircular(short hand, WORD wArea, BOOL bToHost, void *pvBuff, 242 + DWORD dwLength); 243 243 244 244 U14API(int) U14GetCircBlk(short hand, WORD wArea, DWORD *pdwOffs); 245 245 U14API(int) U14FreeCircBlk(short hand, WORD wArea, DWORD dwOffs, DWORD dwSize, 246 - DWORD *pdwOffs); 246 + DWORD *pdwOffs); 247 247 248 - U14API(short) U14StrToLongs(const char *pszBuff, U14LONG *palNums, short sMaxLongs); 249 - U14API(short) U14LongsFrom1401(short hand, U14LONG *palBuff, short sMaxLongs); 248 + U14API(short) U14StrToLongs(const char *pszBuff, U14LONG *palNums, short sMaxLongs); 249 + U14API(short) U14LongsFrom1401(short hand, U14LONG *palBuff, short sMaxLongs); 250 250 251 251 U14API(void) U14SetTimeout(short hand, int lTimeout); 252 252 U14API(int) U14GetTimeout(short hand); 253 - U14API(short) U14OutBufSpace(short hand); 253 + U14API(short) U14OutBufSpace(short hand); 254 254 U14API(int) U14BaseAddr1401(short hand); 255 255 U14API(int) U14DriverVersion(short hand); 256 256 U14API(int) U14DriverType(short hand); 257 - U14API(short) U14DriverName(short hand, char *pBuf, WORD wMax); 258 - U14API(short) U14GetUserMemorySize(short hand, DWORD *pMemorySize); 259 - U14API(short) U14KillIO1401(short hand); 257 + U14API(short) U14DriverName(short hand, char *pBuf, WORD wMax); 258 + U14API(short) U14GetUserMemorySize(short hand, DWORD *pMemorySize); 259 + U14API(short) U14KillIO1401(short hand); 260 260 261 - U14API(short) U14BlkTransState(short hand); 262 - U14API(short) U14StateOf1401(short hand); 261 + U14API(short) U14BlkTransState(short hand); 262 + U14API(short) U14StateOf1401(short hand); 263 263 264 - U14API(short) U14Grab1401(short hand); 265 - U14API(short) U14Free1401(short hand); 266 - U14API(short) U14Peek1401(short hand, DWORD dwAddr, int nSize, int nRepeats); 267 - U14API(short) U14Poke1401(short hand, DWORD dwAddr, DWORD dwValue, int nSize, int nRepeats); 268 - U14API(short) U14Ramp1401(short hand, DWORD dwAddr, DWORD dwDef, DWORD dwEnable, int nSize, int nRepeats); 269 - U14API(short) U14RampAddr(short hand, DWORD dwDef, DWORD dwEnable, int nSize, int nRepeats); 270 - U14API(short) U14StopDebugLoop(short hand); 271 - U14API(short) U14GetDebugData(short hand, U14LONG *plValue); 264 + U14API(short) U14Grab1401(short hand); 265 + U14API(short) U14Free1401(short hand); 266 + U14API(short) U14Peek1401(short hand, DWORD dwAddr, int nSize, int nRepeats); 267 + U14API(short) U14Poke1401(short hand, DWORD dwAddr, DWORD dwValue, int nSize, int nRepeats); 268 + U14API(short) U14Ramp1401(short hand, DWORD dwAddr, DWORD dwDef, DWORD dwEnable, int nSize, int nRepeats); 269 + U14API(short) U14RampAddr(short hand, DWORD dwDef, DWORD dwEnable, int nSize, int nRepeats); 270 + U14API(short) U14StopDebugLoop(short hand); 271 + U14API(short) U14GetDebugData(short hand, U14LONG *plValue); 272 272 273 - U14API(short) U14StartSelfTest(short hand); 274 - U14API(short) U14CheckSelfTest(short hand, U14LONG *pData); 275 - U14API(short) U14TransferFlags(short hand); 273 + U14API(short) U14StartSelfTest(short hand); 274 + U14API(short) U14CheckSelfTest(short hand, U14LONG *pData); 275 + U14API(short) U14TransferFlags(short hand); 276 276 U14API(void) U14GetErrorString(short nErr, char *pStr, WORD wMax); 277 277 U14API(int) U14MonitorRev(short hand); 278 278 U14API(void) U14CloseAll(void); 279 279 280 - U14API(short) U14WorkingSet(DWORD dwMinKb, DWORD dwMaxKb); 280 + U14API(short) U14WorkingSet(DWORD dwMinKb, DWORD dwMaxKb); 281 281 U14API(int) U14InitLib(void); 282 282 283 283 #ifdef __cplusplus
+201 -201
drivers/staging/ced1401/use14_ioc.h
··· 19 19 ** The IOCTL function codes from 0x80 to 0xFF are for developer use. 20 20 */ 21 21 #define FILE_DEVICE_CED1401 0x8001 22 - #define FNNUMBASE 0x800 22 + FNNUMBASE 0x800 23 23 24 - #define U14_OPEN1401 CTL_CODE( FILE_DEVICE_CED1401, \ 25 - FNNUMBASE, \ 26 - METHOD_BUFFERED, \ 27 - FILE_ANY_ACCESS) 24 + #define U14_OPEN1401 CTL_CODE(FILE_DEVICE_CED1401, \ 25 + FNNUMBASE, \ 26 + METHOD_BUFFERED, \ 27 + FILE_ANY_ACCESS) 28 28 29 - #define U14_CLOSE1401 CTL_CODE( FILE_DEVICE_CED1401, \ 30 - FNNUMBASE+1, \ 31 - METHOD_BUFFERED, \ 32 - FILE_ANY_ACCESS) 29 + #define U14_CLOSE1401 CTL_CODE(FILE_DEVICE_CED1401, \ 30 + FNNUMBASE+1, \ 31 + METHOD_BUFFERED, \ 32 + FILE_ANY_ACCESS) 33 33 34 - #define U14_SENDSTRING CTL_CODE( FILE_DEVICE_CED1401, \ 35 - FNNUMBASE+2, \ 36 - METHOD_BUFFERED, \ 37 - FILE_ANY_ACCESS) 34 + #define U14_SENDSTRING CTL_CODE(FILE_DEVICE_CED1401, \ 35 + FNNUMBASE+2, \ 36 + METHOD_BUFFERED, \ 37 + FILE_ANY_ACCESS 38 38 39 - #define U14_RESET1401 CTL_CODE( FILE_DEVICE_CED1401, \ 40 - FNNUMBASE+3, \ 41 - METHOD_BUFFERED, \ 42 - FILE_ANY_ACCESS) 39 + #define U14_RESET1401 CTL_CODE(FILE_DEVICE_CED1401, \ 40 + FNNUMBASE+3, \ 41 + METHOD_BUFFERED, \ 42 + FILE_ANY_ACCESS) 43 43 44 - #define U14_GETCHAR CTL_CODE( FILE_DEVICE_CED1401, \ 45 - FNNUMBASE+4, \ 46 - METHOD_BUFFERED, \ 47 - FILE_ANY_ACCESS) 44 + #define U14_GETCHAR CTL_CODE(FILE_DEVICE_CED1401, \ 45 + FNNUMBASE+4, \ 46 + METHOD_BUFFERED, \ 47 + FILE_ANY_ACCESS) 48 48 49 - #define U14_SENDCHAR CTL_CODE( FILE_DEVICE_CED1401, \ 50 - FNNUMBASE+5, \ 51 - METHOD_BUFFERED, \ 52 - FILE_ANY_ACCESS) 49 + #define U14_SENDCHAR CTL_CODE(FILE_DEVICE_CED1401, \ 50 + FNNUMBASE+5, \ 51 + METHOD_BUFFERED, \ 52 + FILE_ANY_ACCESS) 53 53 54 - #define U14_STAT1401 CTL_CODE( FILE_DEVICE_CED1401, \ 55 - FNNUMBASE+6, \ 56 - METHOD_BUFFERED, \ 57 - FILE_ANY_ACCESS) 54 + #define U14_STAT1401 CTL_CODE(FILE_DEVICE_CED1401, \ 55 + FNNUMBASE+6, \ 56 + METHOD_BUFFERED, \ 57 + FILE_ANY_ACCESS) 58 58 59 - #define U14_LINECOUNT CTL_CODE( FILE_DEVICE_CED1401, \ 60 - FNNUMBASE+7, \ 61 - METHOD_BUFFERED, \ 62 - FILE_ANY_ACCESS) 59 + #define U14_LINECOUNT CTL_CODE(FILE_DEVICE_CED1401, \ 60 + FNNUMBASE+7, \ 61 + METHOD_BUFFERED, \ 62 + FILE_ANY_ACCESS) 63 63 64 - #define U14_GETSTRING CTL_CODE( FILE_DEVICE_CED1401, \ 65 - FNNUMBASE+8, \ 66 - METHOD_BUFFERED, \ 67 - FILE_ANY_ACCESS) 64 + #define U14_GETSTRING CTL_CODE(FILE_DEVICE_CED1401, \ 65 + FNNUMBASE+8, \ 66 + METHOD_BUFFERED, \ 67 + FILE_ANY_ACCESS) 68 68 69 - #define U14_REGCALLBACK CTL_CODE( FILE_DEVICE_CED1401, \ 70 - FNNUMBASE+9, \ 71 - METHOD_BUFFERED, \ 72 - FILE_ANY_ACCESS) 69 + #define U14_REGCALLBACK CTL_CODE(FILE_DEVICE_CED1401, \ 70 + FNNUMBASE+9, \ 71 + METHOD_BUFFERED, \ 72 + FILE_ANY_ACCESS) 73 73 74 - #define U14_GETMONITORBUF CTL_CODE( FILE_DEVICE_CED1401, \ 75 - FNNUMBASE+10, \ 76 - METHOD_BUFFERED, \ 77 - FILE_ANY_ACCESS) 74 + #define U14_GETMONITORBUF CTL_CODE(FILE_DEVICE_CED1401, \ 75 + FNNUMBASE+10, \ 76 + METHOD_BUFFERED, \ 77 + FILE_ANY_ACCESS) 78 78 79 - #define U14_SETTRANSFER CTL_CODE( FILE_DEVICE_CED1401, \ 80 - FNNUMBASE+11, \ 81 - METHOD_BUFFERED, \ 82 - FILE_ANY_ACCESS) 79 + #define U14_SETTRANSFER CTL_CODE(FILE_DEVICE_CED1401, \ 80 + FNNUMBASE+11, \ 81 + METHOD_BUFFERED, \ 82 + FILE_ANY_ACCESS) 83 83 84 - #define U14_UNSETTRANSFER CTL_CODE( FILE_DEVICE_CED1401, \ 85 - FNNUMBASE+12, \ 86 - METHOD_BUFFERED, \ 87 - FILE_ANY_ACCESS) 84 + #define U14_UNSETTRANSFER CTL_CODE(FILE_DEVICE_CED1401, \ 85 + FNNUMBASE+12, \ 86 + METHOD_BUFFERED, \ 87 + FILE_ANY_ACCESS) 88 88 89 - #define U14_SETTRANSEVENT CTL_CODE( FILE_DEVICE_CED1401, \ 90 - FNNUMBASE+13, \ 91 - METHOD_BUFFERED, \ 92 - FILE_ANY_ACCESS) 89 + #define U14_SETTRANSEVENT CTL_CODE(FILE_DEVICE_CED1401, \ 90 + FNNUMBASE+13, \ 91 + METHOD_BUFFERED, \ 92 + FILE_ANY_ACCESS) 93 93 94 - #define U14_GETOUTBUFSPACE CTL_CODE( FILE_DEVICE_CED1401, \ 95 - FNNUMBASE+14, \ 96 - METHOD_BUFFERED, \ 97 - FILE_ANY_ACCESS) 94 + #define U14_GETOUTBUFSPACE CTL_CODE(FILE_DEVICE_CED1401, \ 95 + FNNUMBASE+14, \ 96 + METHOD_BUFFERED, \ 97 + FILE_ANY_ACCESS) 98 98 99 - #define U14_GETBASEADDRESS CTL_CODE( FILE_DEVICE_CED1401, \ 100 - FNNUMBASE+15, \ 101 - METHOD_BUFFERED, \ 102 - FILE_ANY_ACCESS) 99 + #define U14_GETBASEADDRESS CTL_CODE(FILE_DEVICE_CED1401, \ 100 + FNNUMBASE+15, \ 101 + METHOD_BUFFERED, \ 102 + FILE_ANY_ACCESS) 103 103 104 - #define U14_GETDRIVERREVISION CTL_CODE( FILE_DEVICE_CED1401, \ 105 - FNNUMBASE+16, \ 106 - METHOD_BUFFERED, \ 107 - FILE_ANY_ACCESS) 104 + #define U14_GETDRIVERREVISION CTL_CODE(FILE_DEVICE_CED1401, \ 105 + FNNUMBASE+16, \ 106 + METHOD_BUFFERED, \ 107 + FILE_ANY_ACCESS) 108 108 109 - #define U14_GETTRANSFER CTL_CODE( FILE_DEVICE_CED1401, \ 110 - FNNUMBASE+17, \ 111 - METHOD_BUFFERED, \ 112 - FILE_ANY_ACCESS) 109 + #define U14_GETTRANSFER CTL_CODE(FILE_DEVICE_CED1401, \ 110 + FNNUMBASE+17, \ 111 + METHOD_BUFFERED, \ 112 + FILE_ANY_ACCESS) 113 113 114 - #define U14_KILLIO1401 CTL_CODE( FILE_DEVICE_CED1401, \ 115 - FNNUMBASE+18, \ 116 - METHOD_BUFFERED, \ 117 - FILE_ANY_ACCESS) 114 + #define U14_KILLIO1401 CTL_CODE(FILE_DEVICE_CED1401, \ 115 + FNNUMBASE+18, \ 116 + METHOD_BUFFERED, \ 117 + FILE_ANY_ACCESS) 118 118 119 - #define U14_BLKTRANSSTATE CTL_CODE( FILE_DEVICE_CED1401, \ 120 - FNNUMBASE+19, \ 121 - METHOD_BUFFERED, \ 122 - FILE_ANY_ACCESS) 119 + #define U14_BLKTRANSSTATE CTL_CODE(FILE_DEVICE_CED1401, \ 120 + FNNUMBASE+19, \ 121 + METHOD_BUFFERED, \ 122 + FILE_ANY_ACCESS) 123 123 124 - #define U14_BYTECOUNT CTL_CODE( FILE_DEVICE_CED1401, \ 125 - FNNUMBASE+20, \ 126 - METHOD_BUFFERED, \ 127 - FILE_ANY_ACCESS) 124 + #define U14_BYTECOUNT CTL_CODE(FILE_DEVICE_CED1401, \ 125 + FNNUMBASE+20, \ 126 + METHOD_BUFFERED, \ 127 + FILE_ANY_ACCESS) 128 128 129 - #define U14_ZEROBLOCKCOUNT CTL_CODE( FILE_DEVICE_CED1401, \ 130 - FNNUMBASE+21, \ 131 - METHOD_BUFFERED, \ 132 - FILE_ANY_ACCESS) 129 + #define U14_ZEROBLOCKCOUNT CTL_CODE(FILE_DEVICE_CED1401, \ 130 + FNNUMBASE+21, \ 131 + METHOD_BUFFERED, \ 132 + FILE_ANY_ACCESS) 133 133 134 - #define U14_STOPCIRCULAR CTL_CODE( FILE_DEVICE_CED1401, \ 135 - FNNUMBASE+22, \ 136 - METHOD_BUFFERED, \ 137 - FILE_ANY_ACCESS) 134 + #define U14_STOPCIRCULAR CTL_CODE(FILE_DEVICE_CED1401, \ 135 + FNNUMBASE+22, \ 136 + METHOD_BUFFERED, \ 137 + FILE_ANY_ACCESS) 138 138 139 - #define U14_STATEOF1401 CTL_CODE( FILE_DEVICE_CED1401, \ 140 - FNNUMBASE+23, \ 141 - METHOD_BUFFERED, \ 142 - FILE_ANY_ACCESS) 139 + #define U14_STATEOF1401 CTL_CODE(FILE_DEVICE_CED1401, \ 140 + FNNUMBASE+23, \ 141 + METHOD_BUFFERED, \ 142 + FILE_ANY_ACCESS) 143 143 144 - #define U14_REGISTERS1401 CTL_CODE( FILE_DEVICE_CED1401, \ 145 - FNNUMBASE+24, \ 146 - METHOD_BUFFERED, \ 147 - FILE_ANY_ACCESS) 144 + #define U14_REGISTERS1401 CTL_CODE(FILE_DEVICE_CED1401, \ 145 + FNNUMBASE+24, \ 146 + METHOD_BUFFERED, \ 147 + FILE_ANY_ACCESS) 148 148 149 - #define U14_GRAB1401 CTL_CODE( FILE_DEVICE_CED1401, \ 150 - FNNUMBASE+25, \ 151 - METHOD_BUFFERED, \ 152 - FILE_ANY_ACCESS) 149 + #define U14_GRAB1401 CTL_CODE(FILE_DEVICE_CED1401, \ 150 + FNNUMBASE+25, \ 151 + METHOD_BUFFERED, \ 152 + FILE_ANY_ACCESS) 153 153 154 - #define U14_FREE1401 CTL_CODE( FILE_DEVICE_CED1401, \ 155 - FNNUMBASE+26, \ 156 - METHOD_BUFFERED, \ 157 - FILE_ANY_ACCESS) 154 + #define U14_FREE1401 CTL_CODE(FILE_DEVICE_CED1401, \ 155 + FNNUMBASE+26, \ 156 + METHOD_BUFFERED, \ 157 + FILE_ANY_ACCESS) 158 158 159 - #define U14_STEP1401 CTL_CODE( FILE_DEVICE_CED1401, \ 160 - FNNUMBASE+27, \ 161 - METHOD_BUFFERED, \ 162 - FILE_ANY_ACCESS) 159 + #define U14_STEP1401 CTL_CODE(FILE_DEVICE_CED1401, \ 160 + FNNUMBASE+27, \ 161 + METHOD_BUFFERED, \ 162 + FILE_ANY_ACCESS) 163 163 164 - #define U14_SET1401REGISTERS CTL_CODE( FILE_DEVICE_CED1401, \ 165 - FNNUMBASE+28, \ 166 - METHOD_BUFFERED, \ 167 - FILE_ANY_ACCESS) 164 + #define U14_SET1401REGISTERS CTL_CODE(FILE_DEVICE_CED1401, \ 165 + FNNUMBASE+28, \ 166 + METHOD_BUFFERED, \ 167 + FILE_ANY_ACCESS) 168 168 169 - #define U14_STEPTILL1401 CTL_CODE( FILE_DEVICE_CED1401, \ 170 - FNNUMBASE+29, \ 171 - METHOD_BUFFERED, \ 172 - FILE_ANY_ACCESS) 169 + #define U14_STEPTILL1401 CTL_CODE(FILE_DEVICE_CED1401, \ 170 + FNNUMBASE+29, \ 171 + METHOD_BUFFERED, \ 172 + FILE_ANY_ACCESS) 173 173 174 - #define U14_SETORIN CTL_CODE( FILE_DEVICE_CED1401, \ 175 - FNNUMBASE+30, \ 176 - METHOD_BUFFERED, \ 177 - FILE_ANY_ACCESS) 174 + #define U14_SETORIN CTL_CODE(FILE_DEVICE_CED1401, \ 175 + FNNUMBASE+30, \ 176 + METHOD_BUFFERED, \ 177 + FILE_ANY_ACCESS) 178 178 179 - #define U14_STARTSELFTEST CTL_CODE( FILE_DEVICE_CED1401, \ 180 - FNNUMBASE+31, \ 181 - METHOD_BUFFERED, \ 182 - FILE_ANY_ACCESS) 179 + #define U14_STARTSELFTEST CTL_CODE(FILE_DEVICE_CED1401, \ 180 + FNNUMBASE+31, \ 181 + METHOD_BUFFERED, \ 182 + FILE_ANY_ACCESS) 183 183 184 - #define U14_CHECKSELFTEST CTL_CODE( FILE_DEVICE_CED1401, \ 185 - FNNUMBASE+32, \ 186 - METHOD_BUFFERED, \ 187 - FILE_ANY_ACCESS) 184 + #define U14_CHECKSELFTEST CTL_CODE(FILE_DEVICE_CED1401, \ 185 + FNNUMBASE+32, \ 186 + METHOD_BUFFERED, \ 187 + FILE_ANY_ACCESS) 188 188 189 - #define U14_TYPEOF1401 CTL_CODE( FILE_DEVICE_CED1401, \ 190 - FNNUMBASE+33, \ 191 - METHOD_BUFFERED, \ 192 - FILE_ANY_ACCESS) 189 + #define U14_TYPEOF1401 CTL_CODE(FILE_DEVICE_CED1401, \ 190 + FNNUMBASE+33, \ 191 + METHOD_BUFFERED, \ 192 + FILE_ANY_ACCESS) 193 193 194 - #define U14_TRANSFERFLAGS CTL_CODE( FILE_DEVICE_CED1401, \ 195 - FNNUMBASE+34, \ 196 - METHOD_BUFFERED, \ 197 - FILE_ANY_ACCESS) 194 + #define U14_TRANSFERFLAGS CTL_CODE(FILE_DEVICE_CED1401, \ 195 + FNNUMBASE+34, \ 196 + METHOD_BUFFERED, \ 197 + FILE_ANY_ACCESS) 198 198 199 - #define U14_DBGPEEK CTL_CODE( FILE_DEVICE_CED1401, \ 200 - FNNUMBASE+35, \ 201 - METHOD_BUFFERED, \ 202 - FILE_ANY_ACCESS) 199 + #define U14_DBGPEEK CTL_CODE(FILE_DEVICE_CED1401, \ 200 + FNNUMBASE+35, \ 201 + METHOD_BUFFERED, \ 202 + FILE_ANY_ACCESS) 203 203 204 - #define U14_DBGPOKE CTL_CODE( FILE_DEVICE_CED1401, \ 205 - FNNUMBASE+36, \ 206 - METHOD_BUFFERED, \ 207 - FILE_ANY_ACCESS) 204 + #define U14_DBGPOKE CTL_CODE(FILE_DEVICE_CED1401, \ 205 + FNNUMBASE+36, \ 206 + METHOD_BUFFERED, \ 207 + FILE_ANY_ACCESS) 208 208 209 - #define U14_DBGRAMPDATA CTL_CODE( FILE_DEVICE_CED1401, \ 210 - FNNUMBASE+37, \ 211 - METHOD_BUFFERED, \ 212 - FILE_ANY_ACCESS) 209 + #define U14_DBGRAMPDATA CTL_CODE(FILE_DEVICE_CED1401, \ 210 + FNNUMBASE+37, \ 211 + METHOD_BUFFERED, \ 212 + FILE_ANY_ACCESS) 213 213 214 - #define U14_DBGRAMPADDR CTL_CODE( FILE_DEVICE_CED1401, \ 215 - FNNUMBASE+38, \ 216 - METHOD_BUFFERED, \ 217 - FILE_ANY_ACCESS) 214 + #define U14_DBGRAMPADDR CTL_CODE(FILE_DEVICE_CED1401, \ 215 + FNNUMBASE+38, \ 216 + METHOD_BUFFERED, \ 217 + FILE_ANY_ACCESS) 218 218 219 - #define U14_DBGGETDATA CTL_CODE( FILE_DEVICE_CED1401, \ 220 - FNNUMBASE+39, \ 221 - METHOD_BUFFERED, \ 222 - FILE_ANY_ACCESS) 219 + #define U14_DBGGETDATA CTL_CODE(FILE_DEVICE_CED1401, \ 220 + FNNUMBASE+39, \ 221 + METHOD_BUFFERED, \ 222 + FILE_ANY_ACCESS) 223 223 224 - #define U14_DBGSTOPLOOP CTL_CODE( FILE_DEVICE_CED1401, \ 225 - FNNUMBASE+40, \ 226 - METHOD_BUFFERED, \ 227 - FILE_ANY_ACCESS) 224 + #define U14_DBGSTOPLOOP CTL_CODE(FILE_DEVICE_CED1401, \ 225 + FNNUMBASE+40, \ 226 + METHOD_BUFFERED, \ 227 + FILE_ANY_ACCESS) 228 228 229 - #define U14_FULLRESET CTL_CODE( FILE_DEVICE_CED1401, \ 230 - FNNUMBASE+41, \ 231 - METHOD_BUFFERED, \ 232 - FILE_ANY_ACCESS) 229 + #define U14_FULLRESET CTL_CODE(FILE_DEVICE_CED1401, \ 230 + FNNUMBASE+41, \ 231 + METHOD_BUFFERED, \ 232 + FILE_ANY_ACCESS) 233 233 234 - #define U14_SETCIRCULAR CTL_CODE( FILE_DEVICE_CED1401, \ 235 - FNNUMBASE+42, \ 236 - METHOD_BUFFERED, \ 237 - FILE_ANY_ACCESS) 234 + #define U14_SETCIRCULAR CTL_CODE(FILE_DEVICE_CED1401, \ 235 + FNNUMBASE+42, \ 236 + METHOD_BUFFERED, \ 237 + FILE_ANY_ACCESS) 238 238 239 - #define U14_GETCIRCBLK CTL_CODE( FILE_DEVICE_CED1401, \ 240 - FNNUMBASE+43, \ 241 - METHOD_BUFFERED, \ 242 - FILE_ANY_ACCESS) 239 + #define U14_GETCIRCBLK CTL_CODE(FILE_DEVICE_CED1401, \ 240 + FNNUMBASE+43, \ 241 + METHOD_BUFFERED, \ 242 + FILE_ANY_ACCESS) 243 243 244 - #define U14_FREECIRCBLK CTL_CODE( FILE_DEVICE_CED1401, \ 245 - FNNUMBASE+44, \ 246 - METHOD_BUFFERED, \ 247 - FILE_ANY_ACCESS) 244 + #define U14_FREECIRCBLK CTL_CODE(FILE_DEVICE_CED1401, \ 245 + FNNUMBASE+44, \ 246 + METHOD_BUFFERED, \ 247 + FILE_ANY_ACCESS) 248 248 249 249 /*--------------- Structures that are shared with the driver ------------- */ 250 250 #pragma pack(1) 251 251 252 252 typedef struct /* used for get/set standard 1401 registers */ 253 253 { 254 - short sPC; 255 - char A; 256 - char X; 257 - char Y; 258 - char stat; 259 - char rubbish; 254 + short sPC; 255 + char A; 256 + char X; 257 + char Y; 258 + char stat; 259 + char rubbish; 260 260 } T1401REGISTERS; 261 261 262 262 typedef union /* to communicate with 1401 driver status & control funcs */ 263 263 { 264 - char chrs[22]; 265 - short ints[11]; 266 - long longs[5]; 267 - T1401REGISTERS registers; 264 + char chrs[22]; 265 + short ints[11]; 266 + long longs[5]; 267 + T1401REGISTERS registers; 268 268 } TCSBLOCK; 269 269 270 270 typedef TCSBLOCK* LPTCSBLOCK; 271 271 272 272 typedef struct paramBlk 273 273 { 274 - short sState; 275 - TCSBLOCK csBlock; 274 + short sState; 275 + TCSBLOCK csBlock; 276 276 } PARAMBLK; 277 277 278 278 typedef PARAMBLK* PPARAMBLK; 279 279 280 280 typedef struct TransferDesc /* Structure and type for SetTransArea */ 281 281 { 282 - WORD wArea; /* number of transfer area to set up */ 283 - void FAR *lpvBuff; /* address of transfer area */ 284 - DWORD dwLength; /* length of area to set up */ 285 - short eSize; /* size to move (for swapping on MAC) */ 282 + WORD wArea; /* number of transfer area to set up */ 283 + void FAR *lpvBuff; /* address of transfer area */ 284 + DWORD dwLength; /* length of area to set up */ 285 + short eSize; /* size to move (for swapping on MAC) */ 286 286 } TRANSFERDESC; 287 287 288 288 typedef TRANSFERDESC FAR *LPTRANSFERDESC; ··· 290 290 /* This is the structure used to set up a transfer area */ 291 291 typedef struct VXTransferDesc /* use1401.c and use1432x.x use only */ 292 292 { 293 - WORD wArea; /* number of transfer area to set up */ 294 - WORD wAddrSel; /* 16 bit selector for area */ 295 - DWORD dwAddrOfs; /* 32 bit offset for area start */ 296 - DWORD dwLength; /* length of area to set up */ 293 + WORD wArea; /* number of transfer area to set up */ 294 + WORD wAddrSel; /* 16 bit selector for area */ 295 + DWORD dwAddrOfs; /* 32 bit offset for area start */ 296 + DWORD dwLength; /* length of area to set up */ 297 297 } VXTRANSFERDESC; 298 298 299 299 #pragma pack()