OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2010 Broadcom Corporation | 2 * Copyright (c) 2010 Broadcom Corporation |
3 * | 3 * |
4 * Permission to use, copy, modify, and/or distribute this software for any | 4 * Permission to use, copy, modify, and/or distribute this software for any |
5 * purpose with or without fee is hereby granted, provided that the above | 5 * purpose with or without fee is hereby granted, provided that the above |
6 * copyright notice and this permission notice appear in all copies. | 6 * copyright notice and this permission notice appear in all copies. |
7 * | 7 * |
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 DHD_PM_RESUME_WAIT_INIT(sdioh_request_byte_wait); | 63 DHD_PM_RESUME_WAIT_INIT(sdioh_request_byte_wait); |
64 DHD_PM_RESUME_WAIT_INIT(sdioh_request_word_wait); | 64 DHD_PM_RESUME_WAIT_INIT(sdioh_request_word_wait); |
65 DHD_PM_RESUME_WAIT_INIT(sdioh_request_packet_wait); | 65 DHD_PM_RESUME_WAIT_INIT(sdioh_request_packet_wait); |
66 DHD_PM_RESUME_WAIT_INIT(sdioh_request_buffer_wait); | 66 DHD_PM_RESUME_WAIT_INIT(sdioh_request_buffer_wait); |
67 | 67 |
68 #define DMA_ALIGN_MASK 0x03 | 68 #define DMA_ALIGN_MASK 0x03 |
69 | 69 |
70 int sdioh_sdmmc_card_regread(sdioh_info_t *sd, int func, u32 regaddr, | 70 int sdioh_sdmmc_card_regread(sdioh_info_t *sd, int func, u32 regaddr, |
71 int regsize, u32 *data); | 71 int regsize, u32 *data); |
72 | 72 |
73 void sdioh_sdio_set_host_pm_flags(int flag) | |
74 { | |
75 if (sdio_set_host_pm_flags(gInstance->func[1], flag)) | |
76 printk(KERN_ERR "%s: Failed to set pm_flags 0x%08x\n",\ | |
Olof Johansson
2011/03/08 02:35:23
No need for \ at the end. It would be more interes
| |
77 __func__, (unsigned int)flag); | |
Olof Johansson
2011/03/08 02:35:23
No need to cast flag
| |
78 } | |
79 | |
73 static int sdioh_sdmmc_card_enablefuncs(sdioh_info_t *sd) | 80 static int sdioh_sdmmc_card_enablefuncs(sdioh_info_t *sd) |
74 { | 81 { |
75 int err_ret; | 82 int err_ret; |
76 u32 fbraddr; | 83 u32 fbraddr; |
77 u8 func; | 84 u8 func; |
78 | 85 |
79 sd_trace(("%s\n", __func__)); | 86 sd_trace(("%s\n", __func__)); |
80 | 87 |
81 /* Get the Card's common CIS address */ | 88 /* Get the Card's common CIS address */ |
82 sd->com_cis_ptr = sdioh_sdmmc_get_cisaddr(sd, SDIOD_CCCR_CISPTR_0); | 89 sd->com_cis_ptr = sdioh_sdmmc_get_cisaddr(sd, SDIOD_CCCR_CISPTR_0); |
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1230 | 1237 |
1231 int sdioh_start(sdioh_info_t *si, int stage) | 1238 int sdioh_start(sdioh_info_t *si, int stage) |
1232 { | 1239 { |
1233 return 0; | 1240 return 0; |
1234 } | 1241 } |
1235 | 1242 |
1236 int sdioh_stop(sdioh_info_t *si) | 1243 int sdioh_stop(sdioh_info_t *si) |
1237 { | 1244 { |
1238 return 0; | 1245 return 0; |
1239 } | 1246 } |
OLD | NEW |