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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include <dhd_proto.h> | 53 #include <dhd_proto.h> |
54 #include <dhd_dbg.h> | 54 #include <dhd_dbg.h> |
55 #include <dhdioctl.h> | 55 #include <dhdioctl.h> |
56 #include <sdiovar.h> | 56 #include <sdiovar.h> |
57 #include <siutils_priv.h> | 57 #include <siutils_priv.h> |
58 | 58 |
59 #ifndef DHDSDIO_MEM_DUMP_FNAME | 59 #ifndef DHDSDIO_MEM_DUMP_FNAME |
60 #define DHDSDIO_MEM_DUMP_FNAME "mem_dump" | 60 #define DHDSDIO_MEM_DUMP_FNAME "mem_dump" |
61 #endif | 61 #endif |
62 | 62 |
63 #define QLEN» » 256» /* bulk rx and tx queue lengths */ | 63 #define QLEN» » 2046» /* bulk rx and tx queue lengths */ |
64 #define FCHI» » (QLEN - 10) | 64 #define FCHI» » (QLEN - 256) |
65 #define FCLOW» » (FCHI / 2) | 65 #define FCLOW» » (FCHI - 256) |
66 #define PRIOMASK 7 | 66 #define PRIOMASK 7 |
67 | 67 |
68 #define TXRETRIES 2 /* # of retries for tx frames */ | 68 #define TXRETRIES 2 /* # of retries for tx frames */ |
69 | 69 |
70 #if defined(CONFIG_MACH_SANDGATE2G) | 70 #if defined(CONFIG_MACH_SANDGATE2G) |
71 #define DHD_RXBOUND 250 /* Default for max rx frames in | 71 #define DHD_RXBOUND 250 /* Default for max rx frames in |
72 one scheduling */ | 72 one scheduling */ |
73 #else | 73 #else |
74 #define DHD_RXBOUND 50 /* Default for max rx frames in | 74 #define DHD_RXBOUND 50 /* Default for max rx frames in |
75 one scheduling */ | 75 one scheduling */ |
(...skipping 5001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5077 * behavior since the value of the globals may be different on the | 5077 * behavior since the value of the globals may be different on the |
5078 * first time that the driver is initialized vs subsequent | 5078 * first time that the driver is initialized vs subsequent |
5079 * initializations. | 5079 * initializations. |
5080 */ | 5080 */ |
5081 dhd_txbound = DHD_TXBOUND; | 5081 dhd_txbound = DHD_TXBOUND; |
5082 dhd_rxbound = DHD_RXBOUND; | 5082 dhd_rxbound = DHD_RXBOUND; |
5083 dhd_alignctl = true; | 5083 dhd_alignctl = true; |
5084 sd1idle = true; | 5084 sd1idle = true; |
5085 dhd_readahead = true; | 5085 dhd_readahead = true; |
5086 retrydata = false; | 5086 retrydata = false; |
5087 » dhd_doflow = false; | 5087 » dhd_doflow = true; |
5088 dhd_dongle_memsize = 0; | 5088 dhd_dongle_memsize = 0; |
5089 dhd_txminmax = DHD_TXMINMAX; | 5089 dhd_txminmax = DHD_TXMINMAX; |
5090 | 5090 |
5091 forcealign = true; | 5091 forcealign = true; |
5092 | 5092 |
5093 dhd_common_init(); | 5093 dhd_common_init(); |
5094 | 5094 |
5095 DHD_TRACE(("%s: Enter\n", __func__)); | 5095 DHD_TRACE(("%s: Enter\n", __func__)); |
5096 DHD_INFO(("%s: venid 0x%04x devid 0x%04x\n", __func__, venid, devid)); | 5096 DHD_INFO(("%s: venid 0x%04x devid 0x%04x\n", __func__, venid, devid)); |
5097 | 5097 |
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6099 bcmerror = BCME_SDIO_ERROR; | 6099 bcmerror = BCME_SDIO_ERROR; |
6100 } else { | 6100 } else { |
6101 bcmerror = BCME_NOTDOWN; | 6101 bcmerror = BCME_NOTDOWN; |
6102 DHD_ERROR(("%s: Set DEVRESET=false invoked when device " | 6102 DHD_ERROR(("%s: Set DEVRESET=false invoked when device " |
6103 "is on\n", __func__)); | 6103 "is on\n", __func__)); |
6104 bcmerror = BCME_SDIO_ERROR; | 6104 bcmerror = BCME_SDIO_ERROR; |
6105 } | 6105 } |
6106 } | 6106 } |
6107 return bcmerror; | 6107 return bcmerror; |
6108 } | 6108 } |
OLD | NEW |