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

char/mwave: drop typedefs

typedefs are unnecessary here. They rather obfuscate the code than help.
So drop them and use the types directly.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20251119091949.825958-7-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
00a925ee 1c7e15b0

+89 -93
+4 -4
drivers/char/mwave/3780i.c
··· 115 115 OutByteDsp(DSP_IsaSlaveControl, MKBYTE(rSlaveControl_Save)); 116 116 } 117 117 118 - int dsp3780I_EnableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings, 118 + int dsp3780I_EnableDSP(struct dsp_3780i_config_settings *pSettings, 119 119 unsigned short *pIrqMap, 120 120 unsigned short *pDmaMap) 121 121 { ··· 260 260 return 0; 261 261 } 262 262 263 - int dsp3780I_DisableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings) 263 + int dsp3780I_DisableDSP(struct dsp_3780i_config_settings *pSettings) 264 264 { 265 265 unsigned long flags; 266 266 unsigned short usDspBaseIO = pSettings->usDspBaseIO; ··· 284 284 return 0; 285 285 } 286 286 287 - int dsp3780I_Reset(DSP_3780I_CONFIG_SETTINGS * pSettings) 287 + int dsp3780I_Reset(struct dsp_3780i_config_settings *pSettings) 288 288 { 289 289 unsigned long flags; 290 290 unsigned short usDspBaseIO = pSettings->usDspBaseIO; ··· 317 317 } 318 318 319 319 320 - int dsp3780I_Run(DSP_3780I_CONFIG_SETTINGS * pSettings) 320 + int dsp3780I_Run(struct dsp_3780i_config_settings *pSettings) 321 321 { 322 322 unsigned long flags; 323 323 unsigned short usDspBaseIO = pSettings->usDspBaseIO;
+6 -6
drivers/char/mwave/3780i.h
··· 261 261 * the only values maintained by the 3780i support layer are the saved UART 262 262 * registers. 263 263 */ 264 - typedef struct _DSP_3780I_CONFIG_SETTINGS { 264 + struct dsp_3780i_config_settings { 265 265 266 266 /* Location of base configuration register */ 267 267 unsigned short usBaseConfigIO; ··· 313 313 unsigned char ucSCR; /* Scratch register */ 314 314 unsigned char ucDLL; /* Divisor latch, low byte */ 315 315 unsigned char ucDLM; /* Divisor latch, high byte */ 316 - } DSP_3780I_CONFIG_SETTINGS; 316 + }; 317 317 318 318 319 319 /* 3780i support functions */ 320 - int dsp3780I_EnableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings, 320 + int dsp3780I_EnableDSP(struct dsp_3780i_config_settings *pSettings, 321 321 unsigned short *pIrqMap, 322 322 unsigned short *pDmaMap); 323 - int dsp3780I_DisableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings); 324 - int dsp3780I_Reset(DSP_3780I_CONFIG_SETTINGS * pSettings); 325 - int dsp3780I_Run(DSP_3780I_CONFIG_SETTINGS * pSettings); 323 + int dsp3780I_DisableDSP(struct dsp_3780i_config_settings *pSettings); 324 + int dsp3780I_Reset(struct dsp_3780i_config_settings *pSettings); 325 + int dsp3780I_Run(struct dsp_3780i_config_settings *pSettings); 326 326 int dsp3780I_ReadDStore(unsigned short usDspBaseIO, void __user *pvBuffer, 327 327 unsigned uCount, unsigned long ulDSPAddr); 328 328 int dsp3780I_ReadAndClearDStore(unsigned short usDspBaseIO,
+15 -19
drivers/char/mwave/mwavedd.c
··· 86 86 module_param_hw(mwave_uart_irq, int, irq, 0); 87 87 module_param_hw(mwave_uart_io, int, ioport, 0); 88 88 89 - MWAVE_DEVICE_DATA mwave_s_mdd; 89 + struct mwave_device_data mwave_s_mdd; 90 90 91 91 static long mwave_ioctl(struct file *file, unsigned int iocmd, 92 92 unsigned long ioarg) 93 93 { 94 94 unsigned int retval = 0; 95 - pMWAVE_DEVICE_DATA pDrvData = &mwave_s_mdd; 95 + struct mwave_device_data *pDrvData = &mwave_s_mdd; 96 96 void __user *arg = (void __user *)ioarg; 97 97 98 98 switch (iocmd) { ··· 110 110 break; 111 111 112 112 case IOCTL_MW_DSP_ABILITIES: { 113 - MW_ABILITIES rAbilities; 113 + struct mw_abilities rAbilities; 114 114 115 115 mutex_lock(&mwave_mutex); 116 116 retval = tp3780I_QueryAbilities(&pDrvData->rBDData, 117 117 &rAbilities); 118 118 mutex_unlock(&mwave_mutex); 119 119 if (retval == 0) { 120 - if( copy_to_user(arg, &rAbilities, 121 - sizeof(MW_ABILITIES)) ) 120 + if (copy_to_user(arg, &rAbilities, sizeof(rAbilities))) 122 121 return -EFAULT; 123 122 } 124 123 } ··· 125 126 126 127 case IOCTL_MW_READ_DATA: 127 128 case IOCTL_MW_READCLEAR_DATA: { 128 - MW_READWRITE rReadData; 129 + struct mw_readwrite rReadData; 129 130 unsigned short __user *pusBuffer = NULL; 130 131 131 132 if( copy_from_user(&rReadData, arg, 132 - sizeof(MW_READWRITE)) ) 133 + sizeof(struct mw_readwrite)) ) 133 134 return -EFAULT; 134 135 pusBuffer = (unsigned short __user *) (rReadData.pBuf); 135 136 ··· 144 145 break; 145 146 146 147 case IOCTL_MW_READ_INST: { 147 - MW_READWRITE rReadData; 148 + struct mw_readwrite rReadData; 148 149 unsigned short __user *pusBuffer = NULL; 149 150 150 - if( copy_from_user(&rReadData, arg, 151 - sizeof(MW_READWRITE)) ) 151 + if (copy_from_user(&rReadData, arg, sizeof(rReadData))) 152 152 return -EFAULT; 153 153 pusBuffer = (unsigned short __user *) (rReadData.pBuf); 154 154 ··· 161 163 break; 162 164 163 165 case IOCTL_MW_WRITE_DATA: { 164 - MW_READWRITE rWriteData; 166 + struct mw_readwrite rWriteData; 165 167 unsigned short __user *pusBuffer = NULL; 166 168 167 - if( copy_from_user(&rWriteData, arg, 168 - sizeof(MW_READWRITE)) ) 169 + if (copy_from_user(&rWriteData, arg, sizeof(rWriteData))) 169 170 return -EFAULT; 170 171 pusBuffer = (unsigned short __user *) (rWriteData.pBuf); 171 172 ··· 178 181 break; 179 182 180 183 case IOCTL_MW_WRITE_INST: { 181 - MW_READWRITE rWriteData; 184 + struct mw_readwrite rWriteData; 182 185 unsigned short __user *pusBuffer = NULL; 183 186 184 - if( copy_from_user(&rWriteData, arg, 185 - sizeof(MW_READWRITE)) ) 187 + if (copy_from_user(&rWriteData, arg, sizeof(rWriteData))) 186 188 return -EFAULT; 187 189 pusBuffer = (unsigned short __user *)(rWriteData.pBuf); 188 190 ··· 332 336 */ 333 337 static void mwave_exit(void) 334 338 { 335 - pMWAVE_DEVICE_DATA pDrvData = &mwave_s_mdd; 339 + struct mwave_device_data *pDrvData = &mwave_s_mdd; 336 340 337 341 if ( pDrvData->sLine >= 0 ) { 338 342 serial8250_unregister_port(pDrvData->sLine); ··· 357 361 { 358 362 int i; 359 363 int retval = 0; 360 - pMWAVE_DEVICE_DATA pDrvData = &mwave_s_mdd; 364 + struct mwave_device_data *pDrvData = &mwave_s_mdd; 361 365 362 - memset(&mwave_s_mdd, 0, sizeof(MWAVE_DEVICE_DATA)); 366 + memset(&mwave_s_mdd, 0, sizeof(mwave_s_mdd)); 363 367 364 368 pDrvData->bBDInitialized = false; 365 369 pDrvData->bResourcesClaimed = false;
+7 -7
drivers/char/mwave/mwavedd.h
··· 61 61 extern int mwave_uart_irq; 62 62 extern int mwave_uart_io; 63 63 64 - typedef struct _MWAVE_IPC { 64 + struct mwave_ipc { 65 65 unsigned short usIntCount; /* 0=none, 1=first, 2=greater than 1st */ 66 66 bool bIsEnabled; 67 67 bool bIsHere; 68 68 /* entry spin lock */ 69 69 wait_queue_head_t ipc_wait_queue; 70 - } MWAVE_IPC; 70 + }; 71 71 72 - typedef struct _MWAVE_DEVICE_DATA { 73 - THINKPAD_BD_DATA rBDData; /* board driver's data area */ 72 + struct mwave_device_data { 73 + struct thinkpad_bd_data rBDData; /* board driver's data area */ 74 74 unsigned long ulIPCSource_ISR; /* IPC source bits for recently processed intr, set during ISR processing */ 75 75 unsigned long ulIPCSource_DPC; /* IPC source bits for recently processed intr, set during DPC processing */ 76 76 bool bBDInitialized; 77 77 bool bResourcesClaimed; 78 78 bool bDSPEnabled; 79 79 bool bDSPReset; 80 - MWAVE_IPC IPCs[16]; 80 + struct mwave_ipc IPCs[16]; 81 81 bool bMwaveDevRegistered; 82 82 short sLine; 83 83 int nr_registered_attrs; 84 84 int device_registered; 85 85 86 - } MWAVE_DEVICE_DATA, *pMWAVE_DEVICE_DATA; 86 + }; 87 87 88 - extern MWAVE_DEVICE_DATA mwave_s_mdd; 88 + extern struct mwave_device_data mwave_s_mdd; 89 89 90 90 #endif
+11 -11
drivers/char/mwave/mwavepub.h
··· 53 53 #include <linux/miscdevice.h> 54 54 55 55 56 - typedef struct _MW_ABILITIES { 56 + struct mw_abilities { 57 57 unsigned long instr_per_sec; 58 58 unsigned long data_size; 59 59 unsigned long inst_size; ··· 63 63 unsigned long component_list[7]; 64 64 char mwave_os_name[16]; 65 65 char bios_task_name[16]; 66 - } MW_ABILITIES, *pMW_ABILITIES; 66 + }; 67 67 68 68 69 - typedef struct _MW_READWRITE { 69 + struct mw_readwrite { 70 70 unsigned short usDspAddress; /* The dsp address */ 71 71 unsigned long ulDataLength; /* The size in bytes of the data or user buffer */ 72 72 void __user *pBuf; /* Input:variable sized buffer */ 73 - } MW_READWRITE, *pMW_READWRITE; 73 + }; 74 74 75 75 #define IOCTL_MW_RESET _IO(MWAVE_MINOR,1) 76 76 #define IOCTL_MW_RUN _IO(MWAVE_MINOR,2) 77 - #define IOCTL_MW_DSP_ABILITIES _IOR(MWAVE_MINOR,3,MW_ABILITIES) 78 - #define IOCTL_MW_READ_DATA _IOR(MWAVE_MINOR,4,MW_READWRITE) 79 - #define IOCTL_MW_READCLEAR_DATA _IOR(MWAVE_MINOR,5,MW_READWRITE) 80 - #define IOCTL_MW_READ_INST _IOR(MWAVE_MINOR,6,MW_READWRITE) 81 - #define IOCTL_MW_WRITE_DATA _IOW(MWAVE_MINOR,7,MW_READWRITE) 82 - #define IOCTL_MW_WRITE_INST _IOW(MWAVE_MINOR,8,MW_READWRITE) 77 + #define IOCTL_MW_DSP_ABILITIES _IOR(MWAVE_MINOR,3,struct mw_abilities) 78 + #define IOCTL_MW_READ_DATA _IOR(MWAVE_MINOR,4,struct mw_readwrite) 79 + #define IOCTL_MW_READCLEAR_DATA _IOR(MWAVE_MINOR,5,struct mw_readwrite) 80 + #define IOCTL_MW_READ_INST _IOR(MWAVE_MINOR,6,struct mw_readwrite) 81 + #define IOCTL_MW_WRITE_DATA _IOW(MWAVE_MINOR,7,struct mw_readwrite) 82 + #define IOCTL_MW_WRITE_INST _IOW(MWAVE_MINOR,8,struct mw_readwrite) 83 83 #define IOCTL_MW_REGISTER_IPC _IOW(MWAVE_MINOR,9,int) 84 84 #define IOCTL_MW_UNREGISTER_IPC _IOW(MWAVE_MINOR,10,int) 85 85 #define IOCTL_MW_GET_IPC _IOW(MWAVE_MINOR,11,int) 86 - #define IOCTL_MW_TRACE _IOR(MWAVE_MINOR,12,MW_READWRITE) 86 + #define IOCTL_MW_TRACE _IOR(MWAVE_MINOR,12,struct mw_readwrite) 87 87 88 88 89 89 #endif
+1 -1
drivers/char/mwave/smapi.c
··· 116 116 } 117 117 118 118 119 - int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings) 119 + int smapi_query_DSP_cfg(struct smapi_dsp_settings *pSettings) 120 120 { 121 121 int bRC; 122 122 unsigned short usAX, usBX, usCX, usDX, usDI, usSI;
+3 -3
drivers/char/mwave/smapi.h
··· 49 49 #ifndef _LINUX_SMAPI_H 50 50 #define _LINUX_SMAPI_H 51 51 52 - typedef struct { 52 + struct smapi_dsp_settings { 53 53 int bDSPPresent; 54 54 int bDSPEnabled; 55 55 int bModemEnabled; ··· 65 65 unsigned short usSndblstIRQ; 66 66 unsigned short usSndblstDMA; 67 67 unsigned short usSndblstBaseIO; 68 - } SMAPI_DSP_SETTINGS; 68 + }; 69 69 70 70 int smapi_init(void); 71 - int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings); 71 + int smapi_query_DSP_cfg(struct smapi_dsp_settings *pSettings); 72 72 int smapi_set_DSP_cfg(void); 73 73 int smapi_set_DSP_power_state(bool bOn); 74 74
+27 -27
drivers/char/mwave/tp3780i.c
··· 67 67 static unsigned short s_numIrqs = 16, s_numDmas = 8; 68 68 69 69 70 - static void EnableSRAM(THINKPAD_BD_DATA * pBDData) 70 + static void EnableSRAM(struct thinkpad_bd_data *pBDData) 71 71 { 72 - DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 72 + struct dsp_3780i_config_settings *pSettings = &pBDData->rDspSettings; 73 73 unsigned short usDspBaseIO = pSettings->usDspBaseIO; 74 74 DSP_GPIO_OUTPUT_DATA_15_8 rGpioOutputData; 75 75 DSP_GPIO_DRIVER_ENABLE_15_8 rGpioDriverEnable; ··· 98 98 99 99 static irqreturn_t DspInterrupt(int irq, void *dev_id) 100 100 { 101 - pMWAVE_DEVICE_DATA pDrvData = &mwave_s_mdd; 102 - DSP_3780I_CONFIG_SETTINGS *pSettings = &pDrvData->rBDData.rDspSettings; 101 + struct mwave_device_data *pDrvData = &mwave_s_mdd; 102 + struct dsp_3780i_config_settings *pSettings = &pDrvData->rBDData.rDspSettings; 103 103 unsigned short usDspBaseIO = pSettings->usDspBaseIO; 104 104 unsigned short usIPCSource = 0, usIsolationMask, usPCNum; 105 105 ··· 125 125 } 126 126 127 127 128 - int tp3780I_InitializeBoardData(THINKPAD_BD_DATA * pBDData) 128 + int tp3780I_InitializeBoardData(struct thinkpad_bd_data *pBDData) 129 129 { 130 130 int retval = 0; 131 - DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 131 + struct dsp_3780i_config_settings *pSettings = &pBDData->rDspSettings; 132 132 133 133 pBDData->bDSPEnabled = false; 134 134 pSettings->bInterruptClaimed = false; ··· 145 145 return retval; 146 146 } 147 147 148 - void tp3780I_Cleanup(THINKPAD_BD_DATA *pBDData) 148 + void tp3780I_Cleanup(struct thinkpad_bd_data *pBDData) 149 149 { 150 150 } 151 151 152 - int tp3780I_CalcResources(THINKPAD_BD_DATA * pBDData) 152 + int tp3780I_CalcResources(struct thinkpad_bd_data *pBDData) 153 153 { 154 - SMAPI_DSP_SETTINGS rSmapiInfo; 155 - DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 154 + struct smapi_dsp_settings rSmapiInfo; 155 + struct dsp_3780i_config_settings *pSettings = &pBDData->rDspSettings; 156 156 157 157 if (smapi_query_DSP_cfg(&rSmapiInfo)) { 158 158 pr_err("%s: Error: Could not query DSP config. Aborting.\n", __func__); ··· 192 192 } 193 193 194 194 195 - int tp3780I_ClaimResources(THINKPAD_BD_DATA * pBDData) 195 + int tp3780I_ClaimResources(struct thinkpad_bd_data *pBDData) 196 196 { 197 197 int retval = 0; 198 - DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 198 + struct dsp_3780i_config_settings *pSettings = &pBDData->rDspSettings; 199 199 struct resource *pres; 200 200 201 201 pres = request_region(pSettings->usDspBaseIO, 16, "mwave_3780i"); ··· 210 210 return retval; 211 211 } 212 212 213 - int tp3780I_ReleaseResources(THINKPAD_BD_DATA * pBDData) 213 + int tp3780I_ReleaseResources(struct thinkpad_bd_data *pBDData) 214 214 { 215 - DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 215 + struct dsp_3780i_config_settings *pSettings = &pBDData->rDspSettings; 216 216 217 217 release_region(pSettings->usDspBaseIO & (~3), 16); 218 218 ··· 226 226 227 227 228 228 229 - int tp3780I_EnableDSP(THINKPAD_BD_DATA * pBDData) 229 + int tp3780I_EnableDSP(struct thinkpad_bd_data *pBDData) 230 230 { 231 - DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 231 + struct dsp_3780i_config_settings *pSettings = &pBDData->rDspSettings; 232 232 bool bDSPPoweredUp = false, bInterruptAllocated = false; 233 233 234 234 if (pBDData->bDSPEnabled) { ··· 351 351 } 352 352 353 353 354 - int tp3780I_DisableDSP(THINKPAD_BD_DATA * pBDData) 354 + int tp3780I_DisableDSP(struct thinkpad_bd_data *pBDData) 355 355 { 356 - DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 356 + struct dsp_3780i_config_settings *pSettings = &pBDData->rDspSettings; 357 357 358 358 if (pBDData->bDSPEnabled) { 359 359 dsp3780I_DisableDSP(&pBDData->rDspSettings); ··· 369 369 } 370 370 371 371 372 - int tp3780I_ResetDSP(THINKPAD_BD_DATA * pBDData) 372 + int tp3780I_ResetDSP(struct thinkpad_bd_data *pBDData) 373 373 { 374 - DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 374 + struct dsp_3780i_config_settings *pSettings = &pBDData->rDspSettings; 375 375 376 376 if (dsp3780I_Reset(pSettings) == 0) { 377 377 EnableSRAM(pBDData); ··· 381 381 } 382 382 383 383 384 - int tp3780I_StartDSP(THINKPAD_BD_DATA * pBDData) 384 + int tp3780I_StartDSP(struct thinkpad_bd_data *pBDData) 385 385 { 386 - DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 386 + struct dsp_3780i_config_settings *pSettings = &pBDData->rDspSettings; 387 387 388 388 if (dsp3780I_Run(pSettings) == 0) { 389 389 // @BUG @TBD EnableSRAM(pBDData); ··· 395 395 } 396 396 397 397 398 - int tp3780I_QueryAbilities(THINKPAD_BD_DATA * pBDData, MW_ABILITIES * pAbilities) 398 + int tp3780I_QueryAbilities(struct thinkpad_bd_data *pBDData, struct mw_abilities *pAbilities) 399 399 { 400 400 memset(pAbilities, 0, sizeof(*pAbilities)); 401 401 /* fill out standard constant fields */ ··· 424 424 return 0; 425 425 } 426 426 427 - int tp3780I_ReadWriteDspDStore(THINKPAD_BD_DATA * pBDData, unsigned int uOpcode, 427 + int tp3780I_ReadWriteDspDStore(struct thinkpad_bd_data *pBDData, unsigned int uOpcode, 428 428 void __user *pvBuffer, unsigned int uCount, 429 429 unsigned long ulDSPAddr) 430 430 { 431 - DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 431 + struct dsp_3780i_config_settings *pSettings = &pBDData->rDspSettings; 432 432 unsigned short usDspBaseIO = pSettings->usDspBaseIO; 433 433 bool bRC = 0; 434 434 ··· 452 452 } 453 453 454 454 455 - int tp3780I_ReadWriteDspIStore(THINKPAD_BD_DATA * pBDData, unsigned int uOpcode, 455 + int tp3780I_ReadWriteDspIStore(struct thinkpad_bd_data *pBDData, unsigned int uOpcode, 456 456 void __user *pvBuffer, unsigned int uCount, 457 457 unsigned long ulDSPAddr) 458 458 { 459 - DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 459 + struct dsp_3780i_config_settings *pSettings = &pBDData->rDspSettings; 460 460 unsigned short usDspBaseIO = pSettings->usDspBaseIO; 461 461 bool bRC = 0; 462 462
+15 -15
drivers/char/mwave/tp3780i.h
··· 75 75 #define TP_CFG_PllBypass 0 /* don't bypass */ 76 76 #define TP_CFG_ChipletEnable 0xFFFF /* Enable all chiplets */ 77 77 78 - typedef struct { 78 + struct thinkpad_bd_data { 79 79 int bDSPEnabled; 80 80 int bShareDspIrq; 81 81 int bShareUartIrq; 82 - DSP_3780I_CONFIG_SETTINGS rDspSettings; 83 - } THINKPAD_BD_DATA; 82 + struct dsp_3780i_config_settings rDspSettings; 83 + }; 84 84 85 - int tp3780I_InitializeBoardData(THINKPAD_BD_DATA * pBDData); 86 - int tp3780I_CalcResources(THINKPAD_BD_DATA * pBDData); 87 - int tp3780I_ClaimResources(THINKPAD_BD_DATA * pBDData); 88 - int tp3780I_ReleaseResources(THINKPAD_BD_DATA * pBDData); 89 - int tp3780I_EnableDSP(THINKPAD_BD_DATA * pBDData); 90 - int tp3780I_DisableDSP(THINKPAD_BD_DATA * pBDData); 91 - int tp3780I_ResetDSP(THINKPAD_BD_DATA * pBDData); 92 - int tp3780I_StartDSP(THINKPAD_BD_DATA * pBDData); 93 - int tp3780I_QueryAbilities(THINKPAD_BD_DATA * pBDData, MW_ABILITIES * pAbilities); 94 - void tp3780I_Cleanup(THINKPAD_BD_DATA *pBDData); 95 - int tp3780I_ReadWriteDspDStore(THINKPAD_BD_DATA * pBDData, unsigned int uOpcode, 85 + int tp3780I_InitializeBoardData(struct thinkpad_bd_data *pBDData); 86 + int tp3780I_CalcResources(struct thinkpad_bd_data *pBDData); 87 + int tp3780I_ClaimResources(struct thinkpad_bd_data *pBDData); 88 + int tp3780I_ReleaseResources(struct thinkpad_bd_data *pBDData); 89 + int tp3780I_EnableDSP(struct thinkpad_bd_data *pBDData); 90 + int tp3780I_DisableDSP(struct thinkpad_bd_data *pBDData); 91 + int tp3780I_ResetDSP(struct thinkpad_bd_data *pBDData); 92 + int tp3780I_StartDSP(struct thinkpad_bd_data *pBDData); 93 + int tp3780I_QueryAbilities(struct thinkpad_bd_data *pBDData, struct mw_abilities *pAbilities); 94 + void tp3780I_Cleanup(struct thinkpad_bd_data *pBDData); 95 + int tp3780I_ReadWriteDspDStore(struct thinkpad_bd_data *pBDData, unsigned int uOpcode, 96 96 void __user *pvBuffer, unsigned int uCount, 97 97 unsigned long ulDSPAddr); 98 - int tp3780I_ReadWriteDspIStore(THINKPAD_BD_DATA * pBDData, unsigned int uOpcode, 98 + int tp3780I_ReadWriteDspIStore(struct thinkpad_bd_data *pBDData, unsigned int uOpcode, 99 99 void __user *pvBuffer, unsigned int uCount, 100 100 unsigned long ulDSPAddr); 101 101