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

ath6kl: remove-typedef HIF_DEVICE

remove-typedef -s HIF_DEVICE \
"struct hif_device" drivers/staging/ath6kl/

Tested-by: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Luis R. Rodriguez and committed by
Greg Kroah-Hartman
9dabb722 a71f0bf6

+168 -168
+2 -2
drivers/staging/ath6kl/bmi/include/bmi_internal.h
··· 42 42 static bool bmiDone; 43 43 44 44 int 45 - bmiBufferSend(HIF_DEVICE *device, 45 + bmiBufferSend(struct hif_device *device, 46 46 u8 *buffer, 47 47 u32 length); 48 48 49 49 int 50 - bmiBufferReceive(HIF_DEVICE *device, 50 + bmiBufferReceive(struct hif_device *device, 51 51 u8 *buffer, 52 52 u32 length, 53 53 bool want_timeout);
+20 -20
drivers/staging/ath6kl/bmi/src/bmi.c
··· 106 106 } 107 107 108 108 int 109 - BMIDone(HIF_DEVICE *device) 109 + BMIDone(struct hif_device *device) 110 110 { 111 111 int status; 112 112 u32 cid; ··· 142 142 } 143 143 144 144 int 145 - BMIGetTargetInfo(HIF_DEVICE *device, struct bmi_target_info *targ_info) 145 + BMIGetTargetInfo(struct hif_device *device, struct bmi_target_info *targ_info) 146 146 { 147 147 int status; 148 148 u32 cid; ··· 201 201 } 202 202 203 203 int 204 - BMIReadMemory(HIF_DEVICE *device, 204 + BMIReadMemory(struct hif_device *device, 205 205 u32 address, 206 206 u8 *buffer, 207 207 u32 length) ··· 257 257 } 258 258 259 259 int 260 - BMIWriteMemory(HIF_DEVICE *device, 260 + BMIWriteMemory(struct hif_device *device, 261 261 u32 address, 262 262 u8 *buffer, 263 263 u32 length) ··· 322 322 } 323 323 324 324 int 325 - BMIExecute(HIF_DEVICE *device, 325 + BMIExecute(struct hif_device *device, 326 326 u32 address, 327 327 u32 *param) 328 328 { ··· 370 370 } 371 371 372 372 int 373 - BMISetAppStart(HIF_DEVICE *device, 373 + BMISetAppStart(struct hif_device *device, 374 374 u32 address) 375 375 { 376 376 u32 cid; ··· 407 407 } 408 408 409 409 int 410 - BMIReadSOCRegister(HIF_DEVICE *device, 410 + BMIReadSOCRegister(struct hif_device *device, 411 411 u32 address, 412 412 u32 *param) 413 413 { ··· 453 453 } 454 454 455 455 int 456 - BMIWriteSOCRegister(HIF_DEVICE *device, 456 + BMIWriteSOCRegister(struct hif_device *device, 457 457 u32 address, 458 458 u32 param) 459 459 { ··· 493 493 } 494 494 495 495 int 496 - BMIrompatchInstall(HIF_DEVICE *device, 496 + BMIrompatchInstall(struct hif_device *device, 497 497 u32 ROM_addr, 498 498 u32 RAM_addr, 499 499 u32 nbytes, ··· 549 549 } 550 550 551 551 int 552 - BMIrompatchUninstall(HIF_DEVICE *device, 552 + BMIrompatchUninstall(struct hif_device *device, 553 553 u32 rompatch_id) 554 554 { 555 555 u32 cid; ··· 586 586 } 587 587 588 588 static int 589 - _BMIrompatchChangeActivation(HIF_DEVICE *device, 589 + _BMIrompatchChangeActivation(struct hif_device *device, 590 590 u32 rompatch_count, 591 591 u32 *rompatch_list, 592 592 u32 do_activate) ··· 630 630 } 631 631 632 632 int 633 - BMIrompatchActivate(HIF_DEVICE *device, 633 + BMIrompatchActivate(struct hif_device *device, 634 634 u32 rompatch_count, 635 635 u32 *rompatch_list) 636 636 { ··· 638 638 } 639 639 640 640 int 641 - BMIrompatchDeactivate(HIF_DEVICE *device, 641 + BMIrompatchDeactivate(struct hif_device *device, 642 642 u32 rompatch_count, 643 643 u32 *rompatch_list) 644 644 { ··· 646 646 } 647 647 648 648 int 649 - BMILZData(HIF_DEVICE *device, 649 + BMILZData(struct hif_device *device, 650 650 u8 *buffer, 651 651 u32 length) 652 652 { ··· 696 696 } 697 697 698 698 int 699 - BMILZStreamStart(HIF_DEVICE *device, 699 + BMILZStreamStart(struct hif_device *device, 700 700 u32 address) 701 701 { 702 702 u32 cid; ··· 734 734 735 735 /* BMI Access routines */ 736 736 int 737 - bmiBufferSend(HIF_DEVICE *device, 737 + bmiBufferSend(struct hif_device *device, 738 738 u8 *buffer, 739 739 u32 length) 740 740 { ··· 782 782 } 783 783 784 784 int 785 - bmiBufferReceive(HIF_DEVICE *device, 785 + bmiBufferReceive(struct hif_device *device, 786 786 u8 *buffer, 787 787 u32 length, 788 788 bool want_timeout) ··· 958 958 } 959 959 960 960 int 961 - BMIFastDownload(HIF_DEVICE *device, u32 address, u8 *buffer, u32 length) 961 + BMIFastDownload(struct hif_device *device, u32 address, u8 *buffer, u32 length) 962 962 { 963 963 int status = A_ERROR; 964 964 u32 lastWord = 0; ··· 998 998 } 999 999 1000 1000 int 1001 - BMIRawWrite(HIF_DEVICE *device, u8 *buffer, u32 length) 1001 + BMIRawWrite(struct hif_device *device, u8 *buffer, u32 length) 1002 1002 { 1003 1003 return bmiBufferSend(device, buffer, length); 1004 1004 } 1005 1005 1006 1006 int 1007 - BMIRawRead(HIF_DEVICE *device, u8 *buffer, u32 length, bool want_timeout) 1007 + BMIRawRead(struct hif_device *device, u8 *buffer, u32 length, bool want_timeout) 1008 1008 { 1009 1009 return bmiBufferReceive(device, buffer, length, want_timeout); 1010 1010 }
+9 -9
drivers/staging/ath6kl/hif/sdio/linux_sdio/include/hif_internal.h
··· 88 88 #define CMD53_FIXED_ADDRESS 1 89 89 #define CMD53_INCR_ADDRESS 2 90 90 91 - BUS_REQUEST *hifAllocateBusRequest(HIF_DEVICE *device); 92 - void hifFreeBusRequest(HIF_DEVICE *device, BUS_REQUEST *busrequest); 93 - void AddToAsyncList(HIF_DEVICE *device, BUS_REQUEST *busrequest); 91 + BUS_REQUEST *hifAllocateBusRequest(struct hif_device *device); 92 + void hifFreeBusRequest(struct hif_device *device, BUS_REQUEST *busrequest); 93 + void AddToAsyncList(struct hif_device *device, BUS_REQUEST *busrequest); 94 94 95 95 #ifdef HIF_LINUX_MMC_SCATTER_SUPPORT 96 96 ··· 100 100 101 101 struct hif_scatter_req_priv { 102 102 struct hif_scatter_req *pHifScatterReq; /* HIF scatter request with allocated entries */ 103 - HIF_DEVICE *device; /* this device */ 103 + struct hif_device *device; /* this device */ 104 104 BUS_REQUEST *busrequest; /* request associated with request */ 105 105 /* scatter list for linux */ 106 106 struct scatterlist sgentries[MAX_SCATTER_ENTRIES_PER_REQ]; ··· 108 108 109 109 #define ATH_DEBUG_SCATTER ATH_DEBUG_MAKE_MODULE_MASK(0) 110 110 111 - int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support_info *pInfo); 112 - void CleanupHIFScatterResources(HIF_DEVICE *device); 113 - int DoHifReadWriteScatter(HIF_DEVICE *device, BUS_REQUEST *busrequest); 111 + int SetupHIFScatterSupport(struct hif_device *device, struct hif_device_scatter_support_info *pInfo); 112 + void CleanupHIFScatterResources(struct hif_device *device); 113 + int DoHifReadWriteScatter(struct hif_device *device, BUS_REQUEST *busrequest); 114 114 115 115 #else // HIF_LINUX_MMC_SCATTER_SUPPORT 116 116 117 - static inline int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support_info *pInfo) 117 + static inline int SetupHIFScatterSupport(struct hif_device *device, struct hif_device_scatter_support_info *pInfo) 118 118 { 119 119 return A_ENOTSUP; 120 120 } 121 121 122 - static inline int DoHifReadWriteScatter(HIF_DEVICE *device, BUS_REQUEST *busrequest) 122 + static inline int DoHifReadWriteScatter(struct hif_device *device, BUS_REQUEST *busrequest) 123 123 { 124 124 return A_ENOTSUP; 125 125 }
+42 -42
drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c
··· 58 58 #endif /* CONFIG_PM */ 59 59 static int hifDeviceInserted(struct sdio_func *func, const struct sdio_device_id *id); 60 60 static void hifDeviceRemoved(struct sdio_func *func); 61 - static HIF_DEVICE *addHifDevice(struct sdio_func *func); 62 - static HIF_DEVICE *getHifDevice(struct sdio_func *func); 63 - static void delHifDevice(HIF_DEVICE * device); 61 + static struct hif_device *addHifDevice(struct sdio_func *func); 62 + static struct hif_device *getHifDevice(struct sdio_func *func); 63 + static void delHifDevice(struct hif_device * device); 64 64 static int Func0_CMD52WriteByte(struct mmc_card *card, unsigned int address, unsigned char byte); 65 65 static int Func0_CMD52ReadByte(struct mmc_card *card, unsigned int address, unsigned char *byte); 66 66 ··· 107 107 extern u32 debughif; 108 108 109 109 static void ResetAllCards(void); 110 - static int hifDisableFunc(HIF_DEVICE *device, struct sdio_func *func); 111 - static int hifEnableFunc(HIF_DEVICE *device, struct sdio_func *func); 110 + static int hifDisableFunc(struct hif_device *device, struct sdio_func *func); 111 + static int hifEnableFunc(struct hif_device *device, struct sdio_func *func); 112 112 113 113 #ifdef DEBUG 114 114 ··· 153 153 } 154 154 155 155 static int 156 - __HIFReadWrite(HIF_DEVICE *device, 156 + __HIFReadWrite(struct hif_device *device, 157 157 u32 address, 158 158 u8 *buffer, 159 159 u32 length, ··· 304 304 return status; 305 305 } 306 306 307 - void AddToAsyncList(HIF_DEVICE *device, BUS_REQUEST *busrequest) 307 + void AddToAsyncList(struct hif_device *device, BUS_REQUEST *busrequest) 308 308 { 309 309 unsigned long flags; 310 310 BUS_REQUEST *async; ··· 330 330 331 331 /* queue a read/write request */ 332 332 int 333 - HIFReadWrite(HIF_DEVICE *device, 333 + HIFReadWrite(struct hif_device *device, 334 334 u32 address, 335 335 u8 *buffer, 336 336 u32 length, ··· 400 400 /* thread to serialize all requests, both sync and async */ 401 401 static int async_task(void *param) 402 402 { 403 - HIF_DEVICE *device; 403 + struct hif_device *device; 404 404 BUS_REQUEST *request; 405 405 int status; 406 406 unsigned long flags; 407 407 408 - device = (HIF_DEVICE *)param; 408 + device = (struct hif_device *)param; 409 409 AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: async task\n")); 410 410 set_current_state(TASK_INTERRUPTIBLE); 411 411 while(!device->async_shutdown) { ··· 465 465 return 0; 466 466 } 467 467 468 - static s32 IssueSDCommand(HIF_DEVICE *device, u32 opcode, u32 arg, u32 flags, u32 *resp) 468 + static s32 IssueSDCommand(struct hif_device *device, u32 opcode, u32 arg, u32 flags, u32 *resp) 469 469 { 470 470 struct mmc_command cmd; 471 471 s32 err; ··· 488 488 return err; 489 489 } 490 490 491 - int ReinitSDIO(HIF_DEVICE *device) 491 + int ReinitSDIO(struct hif_device *device) 492 492 { 493 493 s32 err; 494 494 struct mmc_host *host; ··· 648 648 } 649 649 650 650 int 651 - PowerStateChangeNotify(HIF_DEVICE *device, HIF_DEVICE_POWER_CHANGE_TYPE config) 651 + PowerStateChangeNotify(struct hif_device *device, HIF_DEVICE_POWER_CHANGE_TYPE config) 652 652 { 653 653 int status = 0; 654 654 #if defined(CONFIG_PM) ··· 691 691 } 692 692 693 693 int 694 - HIFConfigureDevice(HIF_DEVICE *device, HIF_DEVICE_CONFIG_OPCODE opcode, 694 + HIFConfigureDevice(struct hif_device *device, HIF_DEVICE_CONFIG_OPCODE opcode, 695 695 void *config, u32 configLen) 696 696 { 697 697 u32 count; ··· 745 745 } 746 746 747 747 void 748 - HIFShutDownDevice(HIF_DEVICE *device) 748 + HIFShutDownDevice(struct hif_device *device) 749 749 { 750 750 AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: +HIFShutDownDevice\n")); 751 751 if (device != NULL) { ··· 775 775 hifIRQHandler(struct sdio_func *func) 776 776 { 777 777 int status; 778 - HIF_DEVICE *device; 778 + struct hif_device *device; 779 779 AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: +hifIRQHandler\n")); 780 780 781 781 device = getHifDevice(func); ··· 792 792 /* handle HTC startup via thread*/ 793 793 static int startup_task(void *param) 794 794 { 795 - HIF_DEVICE *device; 795 + struct hif_device *device; 796 796 797 - device = (HIF_DEVICE *)param; 797 + device = (struct hif_device *)param; 798 798 AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: call HTC from startup_task\n")); 799 799 /* start up inform DRV layer */ 800 800 if ((osdrvCallbacks.deviceInsertedHandler(osdrvCallbacks.context,device)) != 0) { ··· 806 806 #if defined(CONFIG_PM) 807 807 static int enable_task(void *param) 808 808 { 809 - HIF_DEVICE *device; 810 - device = (HIF_DEVICE *)param; 809 + struct hif_device *device; 810 + device = (struct hif_device *)param; 811 811 AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: call from resume_task\n")); 812 812 813 813 /* start up inform DRV layer */ ··· 826 826 static int hifDeviceInserted(struct sdio_func *func, const struct sdio_device_id *id) 827 827 { 828 828 int ret; 829 - HIF_DEVICE * device; 829 + struct hif_device * device; 830 830 int count; 831 831 832 832 AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ··· 866 866 867 867 868 868 void 869 - HIFAckInterrupt(HIF_DEVICE *device) 869 + HIFAckInterrupt(struct hif_device *device) 870 870 { 871 871 AR_DEBUG_ASSERT(device != NULL); 872 872 ··· 874 874 } 875 875 876 876 void 877 - HIFUnMaskInterrupt(HIF_DEVICE *device) 877 + HIFUnMaskInterrupt(struct hif_device *device) 878 878 { 879 879 int ret; 880 880 ··· 890 890 AR_DEBUG_ASSERT(ret == 0); 891 891 } 892 892 893 - void HIFMaskInterrupt(HIF_DEVICE *device) 893 + void HIFMaskInterrupt(struct hif_device *device) 894 894 { 895 895 int ret; 896 896 AR_DEBUG_ASSERT(device != NULL); ··· 910 910 AR_DEBUG_ASSERT(ret == 0); 911 911 } 912 912 913 - BUS_REQUEST *hifAllocateBusRequest(HIF_DEVICE *device) 913 + BUS_REQUEST *hifAllocateBusRequest(struct hif_device *device) 914 914 { 915 915 BUS_REQUEST *busrequest; 916 916 unsigned long flag; ··· 930 930 } 931 931 932 932 void 933 - hifFreeBusRequest(HIF_DEVICE *device, BUS_REQUEST *busrequest) 933 + hifFreeBusRequest(struct hif_device *device, BUS_REQUEST *busrequest) 934 934 { 935 935 unsigned long flag; 936 936 ··· 949 949 spin_unlock_irqrestore(&device->lock, flag); 950 950 } 951 951 952 - static int hifDisableFunc(HIF_DEVICE *device, struct sdio_func *func) 952 + static int hifDisableFunc(struct hif_device *device, struct sdio_func *func) 953 953 { 954 954 int ret; 955 955 int status = 0; ··· 996 996 return status; 997 997 } 998 998 999 - static int hifEnableFunc(HIF_DEVICE *device, struct sdio_func *func) 999 + static int hifEnableFunc(struct hif_device *device, struct sdio_func *func) 1000 1000 { 1001 1001 struct task_struct* pTask; 1002 1002 const char *taskName = NULL; ··· 1081 1081 { 1082 1082 struct sdio_func *func=dev_to_sdio_func(dev); 1083 1083 int status = 0; 1084 - HIF_DEVICE *device; 1084 + struct hif_device *device; 1085 1085 1086 1086 device = getHifDevice(func); 1087 1087 AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: +hifDeviceSuspend\n")); ··· 1109 1109 { 1110 1110 struct sdio_func *func=dev_to_sdio_func(dev); 1111 1111 int status = 0; 1112 - HIF_DEVICE *device; 1112 + struct hif_device *device; 1113 1113 1114 1114 device = getHifDevice(func); 1115 1115 AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: +hifDeviceResume\n")); ··· 1128 1128 static void hifDeviceRemoved(struct sdio_func *func) 1129 1129 { 1130 1130 int status = 0; 1131 - HIF_DEVICE *device; 1131 + struct hif_device *device; 1132 1132 AR_DEBUG_ASSERT(func != NULL); 1133 1133 1134 1134 AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: +hifDeviceRemoved\n")); ··· 1152 1152 /* 1153 1153 * This should be moved to AR6K HTC layer. 1154 1154 */ 1155 - int hifWaitForPendingRecv(HIF_DEVICE *device) 1155 + int hifWaitForPendingRecv(struct hif_device *device) 1156 1156 { 1157 1157 s32 cnt = 10; 1158 1158 u8 host_int_status; ··· 1183 1183 } 1184 1184 1185 1185 1186 - static HIF_DEVICE * 1186 + static struct hif_device * 1187 1187 addHifDevice(struct sdio_func *func) 1188 1188 { 1189 - HIF_DEVICE *hifdevice; 1189 + struct hif_device *hifdevice; 1190 1190 AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: addHifDevice\n")); 1191 1191 AR_DEBUG_ASSERT(func != NULL); 1192 - hifdevice = kzalloc(sizeof(HIF_DEVICE), GFP_KERNEL); 1192 + hifdevice = kzalloc(sizeof(struct hif_device), GFP_KERNEL); 1193 1193 AR_DEBUG_ASSERT(hifdevice != NULL); 1194 1194 #if HIF_USE_DMA_BOUNCE_BUFFER 1195 1195 hifdevice->dma_buffer = kmalloc(HIF_DMA_BUFFER_SIZE, GFP_KERNEL); ··· 1202 1202 return hifdevice; 1203 1203 } 1204 1204 1205 - static HIF_DEVICE * 1205 + static struct hif_device * 1206 1206 getHifDevice(struct sdio_func *func) 1207 1207 { 1208 1208 AR_DEBUG_ASSERT(func != NULL); 1209 - return (HIF_DEVICE *)sdio_get_drvdata(func); 1209 + return (struct hif_device *)sdio_get_drvdata(func); 1210 1210 } 1211 1211 1212 1212 static void 1213 - delHifDevice(HIF_DEVICE * device) 1213 + delHifDevice(struct hif_device * device) 1214 1214 { 1215 1215 AR_DEBUG_ASSERT(device!= NULL); 1216 1216 AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: delHifDevice; 0x%p\n", device)); ··· 1222 1222 { 1223 1223 } 1224 1224 1225 - void HIFClaimDevice(HIF_DEVICE *device, void *context) 1225 + void HIFClaimDevice(struct hif_device *device, void *context) 1226 1226 { 1227 1227 device->claimedContext = context; 1228 1228 } 1229 1229 1230 - void HIFReleaseDevice(HIF_DEVICE *device) 1230 + void HIFReleaseDevice(struct hif_device *device) 1231 1231 { 1232 1232 device->claimedContext = NULL; 1233 1233 } 1234 1234 1235 - int HIFAttachHTC(HIF_DEVICE *device, HTC_CALLBACKS *callbacks) 1235 + int HIFAttachHTC(struct hif_device *device, HTC_CALLBACKS *callbacks) 1236 1236 { 1237 1237 if (device->htcCallbacks.context != NULL) { 1238 1238 /* already in use! */ ··· 1242 1242 return 0; 1243 1243 } 1244 1244 1245 - void HIFDetachHTC(HIF_DEVICE *device) 1245 + void HIFDetachHTC(struct hif_device *device) 1246 1246 { 1247 1247 A_MEMZERO(&device->htcCallbacks,sizeof(device->htcCallbacks)); 1248 1248 }
+6 -6
drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif_scatter.c
··· 48 48 (((address) & 0x1FFFF) << 9) | \ 49 49 ((bytes_blocks) & 0x1FF) 50 50 51 - static void FreeScatterReq(HIF_DEVICE *device, struct hif_scatter_req *pReq) 51 + static void FreeScatterReq(struct hif_device *device, struct hif_scatter_req *pReq) 52 52 { 53 53 unsigned long flag; 54 54 ··· 60 60 61 61 } 62 62 63 - static struct hif_scatter_req *AllocScatterReq(HIF_DEVICE *device) 63 + static struct hif_scatter_req *AllocScatterReq(struct hif_device *device) 64 64 { 65 65 struct dl_list *pItem; 66 66 unsigned long flag; ··· 79 79 } 80 80 81 81 /* called by async task to perform the operation synchronously using direct MMC APIs */ 82 - int DoHifReadWriteScatter(HIF_DEVICE *device, BUS_REQUEST *busrequest) 82 + int DoHifReadWriteScatter(struct hif_device *device, BUS_REQUEST *busrequest) 83 83 { 84 84 int i; 85 85 u8 rw; ··· 199 199 } 200 200 201 201 /* callback to issue a read-write scatter request */ 202 - static int HifReadWriteScatter(HIF_DEVICE *device, struct hif_scatter_req *pReq) 202 + static int HifReadWriteScatter(struct hif_device *device, struct hif_scatter_req *pReq) 203 203 { 204 204 int status = A_EINVAL; 205 205 u32 request = pReq->Request; ··· 275 275 } 276 276 277 277 /* setup of HIF scatter resources */ 278 - int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support_info *pInfo) 278 + int SetupHIFScatterSupport(struct hif_device *device, struct hif_device_scatter_support_info *pInfo) 279 279 { 280 280 int status = A_ERROR; 281 281 int i; ··· 356 356 } 357 357 358 358 /* clean up scatter support */ 359 - void CleanupHIFScatterResources(HIF_DEVICE *device) 359 + void CleanupHIFScatterResources(struct hif_device *device) 360 360 { 361 361 struct hif_scatter_req_priv *pReqPriv; 362 362 struct hif_scatter_req *pReq;
+5 -5
drivers/staging/ath6kl/htc2/AR6000/ar6k.c
··· 587 587 588 588 #define DEV_GET_VIRT_DMA_INFO(p) ((struct dev_scatter_dma_virtual_info *)((p)->HIFPrivate[0])) 589 589 590 - static struct hif_scatter_req *DevAllocScatterReq(HIF_DEVICE *Context) 590 + static struct hif_scatter_req *DevAllocScatterReq(struct hif_device *Context) 591 591 { 592 592 struct dl_list *pItem; 593 593 struct ar6k_device *pDev = (struct ar6k_device *)Context; ··· 600 600 return NULL; 601 601 } 602 602 603 - static void DevFreeScatterReq(HIF_DEVICE *Context, struct hif_scatter_req *pReq) 603 + static void DevFreeScatterReq(struct hif_device *Context, struct hif_scatter_req *pReq) 604 604 { 605 605 struct ar6k_device *pDev = (struct ar6k_device *)Context; 606 606 LOCK_AR6K(pDev); ··· 664 664 AR_DEBUG_PRINTF(ATH_DEBUG_RECV,("-DevReadWriteScatterAsyncHandler \n")); 665 665 } 666 666 667 - static int DevReadWriteScatter(HIF_DEVICE *Context, struct hif_scatter_req *pReq) 667 + static int DevReadWriteScatter(struct hif_device *Context, struct hif_scatter_req *pReq) 668 668 { 669 669 struct ar6k_device *pDev = (struct ar6k_device *)Context; 670 670 int status = 0; ··· 739 739 struct hif_scatter_req *pReq; 740 740 741 741 while (1) { 742 - pReq = DevAllocScatterReq((HIF_DEVICE *)pDev); 742 + pReq = DevAllocScatterReq((struct hif_device *)pDev); 743 743 if (NULL == pReq) { 744 744 break; 745 745 } ··· 787 787 pReq->ScatterMethod = HIF_SCATTER_DMA_BOUNCE; 788 788 pReq->pScatterBounceBuffer = pVirtualInfo->pVirtDmaBuffer; 789 789 /* free request to the list */ 790 - DevFreeScatterReq((HIF_DEVICE *)pDev,pReq); 790 + DevFreeScatterReq((struct hif_device *)pDev,pReq); 791 791 } 792 792 793 793 if (status) {
+1 -1
drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c
··· 1233 1233 int HCI_TransportSetBaudRate(HCI_TRANSPORT_HANDLE HciTrans, u32 Baud) 1234 1234 { 1235 1235 struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)HciTrans; 1236 - HIF_DEVICE *pHIFDevice = (HIF_DEVICE *)(pProt->pDev->HIFDevice); 1236 + struct hif_device *pHIFDevice = (struct hif_device *)(pProt->pDev->HIFDevice); 1237 1237 u32 scaledBaud, scratchAddr; 1238 1238 int status = 0; 1239 1239
+1 -1
drivers/staging/ath6kl/include/ar3kconfig.h
··· 42 42 u32 Flags; /* config flags */ 43 43 void *pHCIDev; /* HCI bridge device */ 44 44 struct hci_transport_properties *pHCIProps; /* HCI bridge props */ 45 - HIF_DEVICE *pHIFDevice; /* HIF layer device */ 45 + struct hif_device *pHIFDevice; /* HIF layer device */ 46 46 47 47 u32 AR3KBaudRate; /* AR3K operational baud rate */ 48 48 u16 AR6KScale; /* AR6K UART scale value */
+6 -6
drivers/staging/ath6kl/include/ar6000_diag.h
··· 26 26 27 27 28 28 int 29 - ar6000_ReadRegDiag(HIF_DEVICE *hifDevice, u32 *address, u32 *data); 29 + ar6000_ReadRegDiag(struct hif_device *hifDevice, u32 *address, u32 *data); 30 30 31 31 int 32 - ar6000_WriteRegDiag(HIF_DEVICE *hifDevice, u32 *address, u32 *data); 32 + ar6000_WriteRegDiag(struct hif_device *hifDevice, u32 *address, u32 *data); 33 33 34 34 int 35 - ar6000_ReadDataDiag(HIF_DEVICE *hifDevice, u32 address, 35 + ar6000_ReadDataDiag(struct hif_device *hifDevice, u32 address, 36 36 u8 *data, u32 length); 37 37 38 38 int 39 - ar6000_WriteDataDiag(HIF_DEVICE *hifDevice, u32 address, 39 + ar6000_WriteDataDiag(struct hif_device *hifDevice, u32 address, 40 40 u8 *data, u32 length); 41 41 42 42 int 43 - ar6k_ReadTargetRegister(HIF_DEVICE *hifDevice, int regsel, u32 *regval); 43 + ar6k_ReadTargetRegister(struct hif_device *hifDevice, int regsel, u32 *regval); 44 44 45 45 void 46 - ar6k_FetchTargetRegs(HIF_DEVICE *hifDevice, u32 *targregs); 46 + ar6k_FetchTargetRegs(struct hif_device *hifDevice, u32 *targregs); 47 47 48 48 #endif /*AR6000_DIAG_H_*/
+17 -17
drivers/staging/ath6kl/include/bmi.h
··· 44 44 BMICleanup(void); 45 45 46 46 int 47 - BMIDone(HIF_DEVICE *device); 47 + BMIDone(struct hif_device *device); 48 48 49 49 int 50 - BMIGetTargetInfo(HIF_DEVICE *device, struct bmi_target_info *targ_info); 50 + BMIGetTargetInfo(struct hif_device *device, struct bmi_target_info *targ_info); 51 51 52 52 int 53 - BMIReadMemory(HIF_DEVICE *device, 53 + BMIReadMemory(struct hif_device *device, 54 54 u32 address, 55 55 u8 *buffer, 56 56 u32 length); 57 57 58 58 int 59 - BMIWriteMemory(HIF_DEVICE *device, 59 + BMIWriteMemory(struct hif_device *device, 60 60 u32 address, 61 61 u8 *buffer, 62 62 u32 length); 63 63 64 64 int 65 - BMIExecute(HIF_DEVICE *device, 65 + BMIExecute(struct hif_device *device, 66 66 u32 address, 67 67 u32 *param); 68 68 69 69 int 70 - BMISetAppStart(HIF_DEVICE *device, 70 + BMISetAppStart(struct hif_device *device, 71 71 u32 address); 72 72 73 73 int 74 - BMIReadSOCRegister(HIF_DEVICE *device, 74 + BMIReadSOCRegister(struct hif_device *device, 75 75 u32 address, 76 76 u32 *param); 77 77 78 78 int 79 - BMIWriteSOCRegister(HIF_DEVICE *device, 79 + BMIWriteSOCRegister(struct hif_device *device, 80 80 u32 address, 81 81 u32 param); 82 82 83 83 int 84 - BMIrompatchInstall(HIF_DEVICE *device, 84 + BMIrompatchInstall(struct hif_device *device, 85 85 u32 ROM_addr, 86 86 u32 RAM_addr, 87 87 u32 nbytes, ··· 89 89 u32 *patch_id); 90 90 91 91 int 92 - BMIrompatchUninstall(HIF_DEVICE *device, 92 + BMIrompatchUninstall(struct hif_device *device, 93 93 u32 rompatch_id); 94 94 95 95 int 96 - BMIrompatchActivate(HIF_DEVICE *device, 96 + BMIrompatchActivate(struct hif_device *device, 97 97 u32 rompatch_count, 98 98 u32 *rompatch_list); 99 99 100 100 int 101 - BMIrompatchDeactivate(HIF_DEVICE *device, 101 + BMIrompatchDeactivate(struct hif_device *device, 102 102 u32 rompatch_count, 103 103 u32 *rompatch_list); 104 104 105 105 int 106 - BMILZStreamStart(HIF_DEVICE *device, 106 + BMILZStreamStart(struct hif_device *device, 107 107 u32 address); 108 108 109 109 int 110 - BMILZData(HIF_DEVICE *device, 110 + BMILZData(struct hif_device *device, 111 111 u8 *buffer, 112 112 u32 length); 113 113 114 114 int 115 - BMIFastDownload(HIF_DEVICE *device, 115 + BMIFastDownload(struct hif_device *device, 116 116 u32 address, 117 117 u8 *buffer, 118 118 u32 length); 119 119 120 120 int 121 - BMIRawWrite(HIF_DEVICE *device, 121 + BMIRawWrite(struct hif_device *device, 122 122 u8 *buffer, 123 123 u32 length); 124 124 125 125 int 126 - BMIRawRead(HIF_DEVICE *device, 126 + BMIRawRead(struct hif_device *device, 127 127 u8 *buffer, 128 128 u32 length, 129 129 bool want_timeout);
+9 -9
drivers/staging/ath6kl/include/common_drv.h
··· 66 66 /* OS-independent APIs */ 67 67 int ar6000_setup_credit_dist(HTC_HANDLE HTCHandle, struct common_credit_state_info *pCredInfo); 68 68 69 - int ar6000_ReadRegDiag(HIF_DEVICE *hifDevice, u32 *address, u32 *data); 69 + int ar6000_ReadRegDiag(struct hif_device *hifDevice, u32 *address, u32 *data); 70 70 71 - int ar6000_WriteRegDiag(HIF_DEVICE *hifDevice, u32 *address, u32 *data); 71 + int ar6000_WriteRegDiag(struct hif_device *hifDevice, u32 *address, u32 *data); 72 72 73 - int ar6000_ReadDataDiag(HIF_DEVICE *hifDevice, u32 address, u8 *data, u32 length); 73 + int ar6000_ReadDataDiag(struct hif_device *hifDevice, u32 address, u8 *data, u32 length); 74 74 75 - int ar6000_reset_device(HIF_DEVICE *hifDevice, u32 TargetType, bool waitForCompletion, bool coldReset); 75 + int ar6000_reset_device(struct hif_device *hifDevice, u32 TargetType, bool waitForCompletion, bool coldReset); 76 76 77 - void ar6000_dump_target_assert_info(HIF_DEVICE *hifDevice, u32 TargetType); 77 + void ar6000_dump_target_assert_info(struct hif_device *hifDevice, u32 TargetType); 78 78 79 - int ar6000_set_htc_params(HIF_DEVICE *hifDevice, 79 + int ar6000_set_htc_params(struct hif_device *hifDevice, 80 80 u32 TargetType, 81 81 u32 MboxIsrYieldValue, 82 82 u8 HtcControlBuffers); 83 83 84 - int ar6000_prepare_target(HIF_DEVICE *hifDevice, 84 + int ar6000_prepare_target(struct hif_device *hifDevice, 85 85 u32 TargetType, 86 86 u32 TargetVersion); 87 87 88 - int ar6000_set_hci_bridge_flags(HIF_DEVICE *hifDevice, 88 + int ar6000_set_hci_bridge_flags(struct hif_device *hifDevice, 89 89 u32 TargetType, 90 90 u32 Flags); 91 91 92 - void ar6000_copy_cust_data_from_target(HIF_DEVICE *hifDevice, u32 TargetType); 92 + void ar6000_copy_cust_data_from_target(struct hif_device *hifDevice, u32 TargetType); 93 93 94 94 u8 *ar6000_get_cust_data_buffer(u32 TargetType); 95 95
+17 -17
drivers/staging/ath6kl/include/hif.h
··· 38 38 39 39 40 40 typedef struct htc_callbacks HTC_CALLBACKS; 41 - typedef struct hif_device HIF_DEVICE; 41 + struct hif_device; 42 42 43 43 /* 44 44 * direction - Direction of transfer (HIF_READ/HIF_WRITE). ··· 301 301 struct hif_scatter_item ScatterList[1]; /* start of scatter list */ 302 302 }; 303 303 304 - typedef struct hif_scatter_req * ( *HIF_ALLOCATE_SCATTER_REQUEST)(HIF_DEVICE *device); 305 - typedef void ( *HIF_FREE_SCATTER_REQUEST)(HIF_DEVICE *device, struct hif_scatter_req *request); 306 - typedef int ( *HIF_READWRITE_SCATTER)(HIF_DEVICE *device, struct hif_scatter_req *request); 304 + typedef struct hif_scatter_req * ( *HIF_ALLOCATE_SCATTER_REQUEST)(struct hif_device *device); 305 + typedef void ( *HIF_FREE_SCATTER_REQUEST)(struct hif_device *device, struct hif_scatter_req *request); 306 + typedef int ( *HIF_READWRITE_SCATTER)(struct hif_device *device, struct hif_scatter_req *request); 307 307 308 308 struct hif_device_scatter_support_info { 309 309 /* information returned from HIF layer */ ··· 354 354 355 355 /* function to get pending events , some HIF modules use special mechanisms 356 356 * to detect packet available and other interrupts */ 357 - typedef int ( *HIF_PENDING_EVENTS_FUNC)(HIF_DEVICE *device, 357 + typedef int ( *HIF_PENDING_EVENTS_FUNC)(struct hif_device *device, 358 358 struct hif_pending_events_info *pEvents, 359 359 void *AsyncContext); 360 360 361 361 #define HIF_MASK_RECV true 362 362 #define HIF_UNMASK_RECV false 363 363 /* function to mask recv events */ 364 - typedef int ( *HIF_MASK_UNMASK_RECV_EVENT)(HIF_DEVICE *device, 364 + typedef int ( *HIF_MASK_UNMASK_RECV_EVENT)(struct hif_device *device, 365 365 bool Mask, 366 366 void *AsyncContext); 367 367 ··· 376 376 /* This API claims the HIF device and provides a context for handling removal. 377 377 * The device removal callback is only called when the OSDRV layer claims 378 378 * a device. The claimed context must be non-NULL */ 379 - void HIFClaimDevice(HIF_DEVICE *device, void *claimedContext); 379 + void HIFClaimDevice(struct hif_device *device, void *claimedContext); 380 380 /* release the claimed device */ 381 - void HIFReleaseDevice(HIF_DEVICE *device); 381 + void HIFReleaseDevice(struct hif_device *device); 382 382 383 383 /* This API allows the HTC layer to attach to the HIF device */ 384 - int HIFAttachHTC(HIF_DEVICE *device, HTC_CALLBACKS *callbacks); 384 + int HIFAttachHTC(struct hif_device *device, HTC_CALLBACKS *callbacks); 385 385 /* This API detaches the HTC layer from the HIF device */ 386 - void HIFDetachHTC(HIF_DEVICE *device); 386 + void HIFDetachHTC(struct hif_device *device); 387 387 388 388 /* 389 389 * This API is used to provide the read/write interface over the specific bus ··· 398 398 * request - Characterizes the attributes of the command. 399 399 */ 400 400 int 401 - HIFReadWrite(HIF_DEVICE *device, 401 + HIFReadWrite(struct hif_device *device, 402 402 u32 address, 403 403 u8 *buffer, 404 404 u32 length, ··· 409 409 * This can be initiated from the unload driver context when the OSDRV layer has no more use for 410 410 * the device. 411 411 */ 412 - void HIFShutDownDevice(HIF_DEVICE *device); 412 + void HIFShutDownDevice(struct hif_device *device); 413 413 414 414 /* 415 415 * This should translate to an acknowledgment to the bus driver indicating that ··· 418 418 * This should prevent the bus driver from raising an interrupt unless the 419 419 * previous one has been serviced and acknowledged using the previous API. 420 420 */ 421 - void HIFAckInterrupt(HIF_DEVICE *device); 421 + void HIFAckInterrupt(struct hif_device *device); 422 422 423 - void HIFMaskInterrupt(HIF_DEVICE *device); 423 + void HIFMaskInterrupt(struct hif_device *device); 424 424 425 - void HIFUnMaskInterrupt(HIF_DEVICE *device); 425 + void HIFUnMaskInterrupt(struct hif_device *device); 426 426 427 427 #ifdef THREAD_X 428 428 /* ··· 441 441 #endif 442 442 443 443 int 444 - HIFConfigureDevice(HIF_DEVICE *device, HIF_DEVICE_CONFIG_OPCODE opcode, 444 + HIFConfigureDevice(struct hif_device *device, HIF_DEVICE_CONFIG_OPCODE opcode, 445 445 void *config, u32 configLen); 446 446 447 447 /* 448 448 * This API wait for the remaining MBOX messages to be drained 449 449 * This should be moved to HTC AR6K layer 450 450 */ 451 - int hifWaitForPendingRecv(HIF_DEVICE *device); 451 + int hifWaitForPendingRecv(struct hif_device *device); 452 452 453 453 #ifdef __cplusplus 454 454 }
+19 -19
drivers/staging/ath6kl/miscdrv/common_drv.c
··· 83 83 #ifdef USE_4BYTE_REGISTER_ACCESS 84 84 85 85 /* set the window address register (using 4-byte register access ). */ 86 - int ar6000_SetAddressWindowRegister(HIF_DEVICE *hifDevice, u32 RegisterAddr, u32 Address) 86 + int ar6000_SetAddressWindowRegister(struct hif_device *hifDevice, u32 RegisterAddr, u32 Address) 87 87 { 88 88 int status; 89 89 u8 addrValue[4]; ··· 144 144 #else 145 145 146 146 /* set the window address register */ 147 - int ar6000_SetAddressWindowRegister(HIF_DEVICE *hifDevice, u32 RegisterAddr, u32 Address) 147 + int ar6000_SetAddressWindowRegister(struct hif_device *hifDevice, u32 RegisterAddr, u32 Address) 148 148 { 149 149 int status; 150 150 ··· 187 187 * No cooperation from the Target is required for this. 188 188 */ 189 189 int 190 - ar6000_ReadRegDiag(HIF_DEVICE *hifDevice, u32 *address, u32 *data) 190 + ar6000_ReadRegDiag(struct hif_device *hifDevice, u32 *address, u32 *data) 191 191 { 192 192 int status; 193 193 ··· 221 221 * No cooperation from the Target is required for this. 222 222 */ 223 223 int 224 - ar6000_WriteRegDiag(HIF_DEVICE *hifDevice, u32 *address, u32 *data) 224 + ar6000_WriteRegDiag(struct hif_device *hifDevice, u32 *address, u32 *data) 225 225 { 226 226 int status; 227 227 ··· 244 244 } 245 245 246 246 int 247 - ar6000_ReadDataDiag(HIF_DEVICE *hifDevice, u32 address, 247 + ar6000_ReadDataDiag(struct hif_device *hifDevice, u32 address, 248 248 u8 *data, u32 length) 249 249 { 250 250 u32 count; ··· 262 262 } 263 263 264 264 int 265 - ar6000_WriteDataDiag(HIF_DEVICE *hifDevice, u32 address, 265 + ar6000_WriteDataDiag(struct hif_device *hifDevice, u32 address, 266 266 u8 *data, u32 length) 267 267 { 268 268 u32 count; ··· 280 280 } 281 281 282 282 int 283 - ar6k_ReadTargetRegister(HIF_DEVICE *hifDevice, int regsel, u32 *regval) 283 + ar6k_ReadTargetRegister(struct hif_device *hifDevice, int regsel, u32 *regval) 284 284 { 285 285 int status; 286 286 u8 vals[4]; ··· 316 316 } 317 317 318 318 void 319 - ar6k_FetchTargetRegs(HIF_DEVICE *hifDevice, u32 *targregs) 319 + ar6k_FetchTargetRegs(struct hif_device *hifDevice, u32 *targregs) 320 320 { 321 321 int i; 322 322 u32 val; ··· 330 330 331 331 #if 0 332 332 static int 333 - _do_write_diag(HIF_DEVICE *hifDevice, u32 addr, u32 value) 333 + _do_write_diag(struct hif_device *hifDevice, u32 addr, u32 value) 334 334 { 335 335 int status; 336 336 ··· 358 358 */ 359 359 #if 0 360 360 static int 361 - _delay_until_target_alive(HIF_DEVICE *hifDevice, s32 wait_msecs, u32 TargetType) 361 + _delay_until_target_alive(struct hif_device *hifDevice, s32 wait_msecs, u32 TargetType) 362 362 { 363 363 s32 actual_wait; 364 364 s32 i; ··· 399 399 #define AR6002_RESET_CONTROL_ADDRESS 0x00004000 400 400 #define AR6003_RESET_CONTROL_ADDRESS 0x00004000 401 401 /* reset device */ 402 - int ar6000_reset_device(HIF_DEVICE *hifDevice, u32 TargetType, bool waitForCompletion, bool coldReset) 402 + int ar6000_reset_device(struct hif_device *hifDevice, u32 TargetType, bool waitForCompletion, bool coldReset) 403 403 { 404 404 int status = 0; 405 405 u32 address; ··· 481 481 482 482 /* This should be called in BMI phase after firmware is downloaded */ 483 483 void 484 - ar6000_copy_cust_data_from_target(HIF_DEVICE *hifDevice, u32 TargetType) 484 + ar6000_copy_cust_data_from_target(struct hif_device *hifDevice, u32 TargetType) 485 485 { 486 486 u32 eepHeaderAddr; 487 487 u8 AR6003CustDataShadow[AR6003_CUST_DATA_SIZE+4]; ··· 552 552 #endif 553 553 554 554 555 - void ar6000_dump_target_assert_info(HIF_DEVICE *hifDevice, u32 TargetType) 555 + void ar6000_dump_target_assert_info(struct hif_device *hifDevice, u32 TargetType) 556 556 { 557 557 u32 address; 558 558 u32 regDumpArea = 0; ··· 624 624 625 625 /* set HTC/Mbox operational parameters, this can only be called when the target is in the 626 626 * BMI phase */ 627 - int ar6000_set_htc_params(HIF_DEVICE *hifDevice, 627 + int ar6000_set_htc_params(struct hif_device *hifDevice, 628 628 u32 TargetType, 629 629 u32 MboxIsrYieldValue, 630 630 u8 HtcControlBuffers) ··· 684 684 } 685 685 686 686 687 - static int prepare_ar6002(HIF_DEVICE *hifDevice, u32 TargetVersion) 687 + static int prepare_ar6002(struct hif_device *hifDevice, u32 TargetVersion) 688 688 { 689 689 int status = 0; 690 690 ··· 693 693 return status; 694 694 } 695 695 696 - static int prepare_ar6003(HIF_DEVICE *hifDevice, u32 TargetVersion) 696 + static int prepare_ar6003(struct hif_device *hifDevice, u32 TargetVersion) 697 697 { 698 698 int status = 0; 699 699 ··· 703 703 } 704 704 705 705 /* this function assumes the caller has already initialized the BMI APIs */ 706 - int ar6000_prepare_target(HIF_DEVICE *hifDevice, 706 + int ar6000_prepare_target(struct hif_device *hifDevice, 707 707 u32 TargetType, 708 708 u32 TargetVersion) 709 709 { ··· 725 725 * TBDXXX: Remove this function when REV 1.x is desupported. 726 726 */ 727 727 int 728 - ar6002_REV1_reset_force_host (HIF_DEVICE *hifDevice) 728 + ar6002_REV1_reset_force_host (struct hif_device *hifDevice) 729 729 { 730 730 s32 i; 731 731 struct forceROM_s { ··· 998 998 } 999 999 1000 1000 /* can only be called during bmi init stage */ 1001 - int ar6000_set_hci_bridge_flags(HIF_DEVICE *hifDevice, 1001 + int ar6000_set_hci_bridge_flags(struct hif_device *hifDevice, 1002 1002 u32 TargetType, 1003 1003 u32 Flags) 1004 1004 {
+3 -3
drivers/staging/ath6kl/os/linux/eeprom.c
··· 55 55 56 56 static u8 eeprom_data[EEPROM_SZ]; 57 57 static u32 sys_sleep_reg; 58 - static HIF_DEVICE *p_bmi_device; 58 + static struct hif_device *p_bmi_device; 59 59 60 60 // 61 61 // Functions ··· 158 158 * so we can access the EEPROM. 159 159 */ 160 160 static void 161 - enable_SI(HIF_DEVICE *p_device) 161 + enable_SI(struct hif_device *p_device) 162 162 { 163 163 u32 regval; 164 164 ··· 361 361 } 362 362 /* ATHENV */ 363 363 #ifdef ANDROID_ENV 364 - void eeprom_ar6000_transfer(HIF_DEVICE *device, char *fake_file, char *p_mac) 364 + void eeprom_ar6000_transfer(struct hif_device *device, char *fake_file, char *p_mac) 365 365 { 366 366 u32 first_word; 367 367 u32 board_data_addr;
+3 -3
drivers/staging/ath6kl/os/linux/export_hci_transport.c
··· 70 70 } 71 71 72 72 int 73 - ar6000_get_hif_dev(HIF_DEVICE *device, void *config) 73 + ar6000_get_hif_dev(struct hif_device *device, void *config) 74 74 { 75 75 int status; 76 76 ··· 81 81 return status; 82 82 } 83 83 84 - int ar6000_set_uart_config(HIF_DEVICE *hifDevice, 84 + int ar6000_set_uart_config(struct hif_device *hifDevice, 85 85 u32 scale, 86 86 u32 step) 87 87 { ··· 97 97 return status; 98 98 } 99 99 100 - int ar6000_get_core_clock_config(HIF_DEVICE *hifDevice, u32 *data) 100 + int ar6000_get_core_clock_config(struct hif_device *hifDevice, u32 *data) 101 101 { 102 102 u32 regAddress; 103 103 int status;
+2 -2
drivers/staging/ath6kl/os/linux/hci_bridge.c
··· 270 270 ar3kconfig.pHCIDev = pHcidevInfo->pHCIDev; 271 271 ar3kconfig.pHCIProps = &pHcidevInfo->HCIProps; 272 272 #ifdef EXPORT_HCI_BRIDGE_INTERFACE 273 - ar3kconfig.pHIFDevice = (HIF_DEVICE *)(pHcidevInfo->HCITransHdl.hifDevice); 273 + ar3kconfig.pHIFDevice = (struct hif_device *)(pHcidevInfo->HCITransHdl.hifDevice); 274 274 #else 275 275 ar3kconfig.pHIFDevice = pHcidevInfo->ar->arHifDevice; 276 276 #endif ··· 868 868 A_MEMZERO(&osDevInfo,sizeof(osDevInfo)); 869 869 /* get the underlying OS device */ 870 870 #ifdef EXPORT_HCI_BRIDGE_INTERFACE 871 - status = ar6000_get_hif_dev((HIF_DEVICE *)(pHcidevInfo->HCITransHdl.hifDevice), 871 + status = ar6000_get_hif_dev((struct hif_device *)(pHcidevInfo->HCITransHdl.hifDevice), 872 872 &osDevInfo); 873 873 #else 874 874 status = HIFConfigureDevice(pHcidevInfo->ar->arHifDevice,
+2 -2
drivers/staging/ath6kl/os/linux/include/ar6000_drv.h
··· 121 121 #define DBG_DEFAULTS (DBG_ERROR|DBG_WARNING) 122 122 123 123 124 - int ar6000_ReadRegDiag(HIF_DEVICE *hifDevice, u32 *address, u32 *data); 125 - int ar6000_WriteRegDiag(HIF_DEVICE *hifDevice, u32 *address, u32 *data); 124 + int ar6000_ReadRegDiag(struct hif_device *hifDevice, u32 *address, u32 *data); 125 + int ar6000_WriteRegDiag(struct hif_device *hifDevice, u32 *address, u32 *data); 126 126 127 127 #ifdef __cplusplus 128 128 extern "C" {
+3 -3
drivers/staging/ath6kl/os/linux/include/export_hci_transport.h
··· 63 63 64 64 extern int ar6000_register_hci_transport(struct hci_transport_callbacks *hciTransCallbacks); 65 65 66 - extern int ar6000_get_hif_dev(HIF_DEVICE *device, void *config); 66 + extern int ar6000_get_hif_dev(struct hif_device *device, void *config); 67 67 68 - extern int ar6000_set_uart_config(HIF_DEVICE *hifDevice, u32 scale, u32 step); 68 + extern int ar6000_set_uart_config(struct hif_device *hifDevice, u32 scale, u32 step); 69 69 70 70 /* get core clock register settings 71 71 * data: 0 - 40/44MHz ··· 73 73 * where (5G band/2.4G band) 74 74 * assume 2.4G band for now 75 75 */ 76 - extern int ar6000_get_core_clock_config(HIF_DEVICE *hifDevice, u32 *data); 76 + extern int ar6000_get_core_clock_config(struct hif_device *hifDevice, u32 *data);
+1 -1
drivers/staging/ath6kl/os/linux/ioctl.c
··· 1865 1865 int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) 1866 1866 { 1867 1867 struct ar6_softc *ar = (struct ar6_softc *)ar6k_priv(dev); 1868 - HIF_DEVICE *hifDevice = ar->arHifDevice; 1868 + struct hif_device *hifDevice = ar->arHifDevice; 1869 1869 int ret = 0, param; 1870 1870 unsigned int address = 0; 1871 1871 unsigned int length = 0;