2 * Copyright (c) 2013 Qualcomm Atheros, Inc.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted (subject to the limitations in the
7 * disclaimer below) provided that the following conditions are met:
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
17 * * Neither the name of Qualcomm Atheros nor the names of its
18 * contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
21 * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
22 * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
23 * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
24 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
30 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
31 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
32 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
33 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 #ifndef __CMNOS_API_H__
36 #define __CMNOS_API_H__
39 * This file contains wrappers to OS operating system functions
40 * that are available in all versions of the operating system.
42 * Target software must always use these wrappers to access OS
43 * services -- it may not access any OS services directly.
48 #include "xtensa/config/core.h"
49 #include "xtensa/hal.h"
50 #include "xtensa/xtruntime.h"
53 #include "printf_api.h"
58 #include "string_api.h"
59 #include "timer_api.h"
61 #include "allocram_api.h"
62 #include "tasklet_api.h"
63 #include "clock_api.h"
66 #include "eeprom_api.h"
71 #if defined(PROJECT_K2)
72 #if SYSTEM_MODULE_SFLASH
73 #include "cmnos/sflash_api.h"
77 #define AR6K_ROM_START 0x004e0000
78 #define AR6K_ROM_ADDR(byte_offset) (AR6K_ROM_START+(byte_offset))
79 #define TARG_ROM_ADDRS(byte_offset) AR6K_ROM_ADDR(byte_offset)
81 #define IML_SIGNAL_UNUSED0_ADDR TARG_ROM_ADDRS(0) /* Cannot be used -- aligned */
82 #define IML_SIGNAL_ASSERT_ADDR TARG_ROM_ADDRS(1) /* Signal an assertion failure */
83 #define IML_SIGNAL_PRINTF_ADDR TARG_ROM_ADDRS(2) /* Signal a printf request */
84 #define IML_SIGNAL_UNUSED4_ADDR TARG_ROM_ADDRS(4) /* Cannot be used -- aligned */
85 #define IML_SIGNAL_UNUSED8_ADDR TARG_ROM_ADDRS(8) /* Cannot be used -- aligned */
86 #define IML_SIGNAL_UNUSEDC_ADDR TARG_ROM_ADDRS(0xc) /* Cannot be used -- aligned */
87 #define IML_SIGNAL_MASK 0xfffe000f
88 #define IML_LINENUM_SHIFT 4
90 #define NOW() xthal_get_ccount()
92 #if defined(__XTENSA__)
93 #define _A_BARRIER asm volatile("memw")
98 #define A_ASSERT( __bool ) \
100 if (0 == (__bool)) { \
101 (void)*((volatile int *)(IML_SIGNAL_ASSERT_ADDR+(__LINE__<<4)));\
107 #define A_IML_IS_ASSERT(vaddr) \
108 (((vaddr) & IML_SIGNAL_MASK) == (IML_SIGNAL_ASSERT_ADDR & IML_SIGNAL_MASK))
111 #define PRINT_FAILURE_STATE() \
113 uint32_t epc1, epc2, epc3, epc4; \
115 asm volatile("rsr %0,%1" : "=r" (epc1) : "n" (EPC_1)); \
116 asm volatile("rsr %0,%1" : "=r" (epc2) : "n" (EPC_2)); \
117 asm volatile("rsr %0,%1" : "=r" (epc3) : "n" (EPC_3)); \
118 asm volatile("rsr %0,%1" : "=r" (epc4) : "n" (EPC_4)); \
120 A_PRINTF("\tepc1=0x%x, epc2=0x%x, epc3=0x%x, epc4=0x%x\n", \
121 epc1, epc2, epc3, epc4); \
122 A_PRINTF("0x%08x, 0x%08x, 0x%08x, \n\r", \
123 DEBUG_SYSTEM_STATE, WATCH_DOG_RESET_COUNTER, \
124 WATCH_DOG_MAGIC_PATTERN); \
126 ////////////////////////////////////////////////////////////////////////////////////
129 //#define A_CMN(sym) _A_OS_INDIRECTION_TABLE->cmnos.sym
130 #define A_CMN(sym) _A_MAGPIE_INDIRECTION_TABLE->cmnos.sym
132 #if SYSTEM_MODULE_MEM
134 #define A_MEMSET(addr, value, size) \
135 A_CMN(mem._memset((char *)(addr), (int)(value), (int)(size)))
137 #define A_MEMZERO(addr, size) \
138 A_CMN(mem._memset((char *)(addr), (int)0, (int)(size)))
140 #define A_MEMCPY(dst, src, size) \
141 A_CMN(mem._memcpy((char *)(dst), (char *)(src), (int)(size)))
143 #define A_MEMMOVE(dst, src, size) \
144 A_CMN(mem._memmove((char *)(dst), (char *)(src), (int)(size)))
146 #define A_MEMCMP(p1, p2, nbytes) \
147 A_CMN(mem._memcmp)((void *)(p1), (void *)(p2), (int)(nbytes))
150 #define A_MEMSET(addr, value, size)
152 #define A_MEMZERO(addr, size)
154 #define A_MEMCPY(dst, src, size)
156 #define A_MEMMOVE(dst, src, size)
158 #define A_MEMCMP(p1, p2, nbytes)
163 /* String interfaces */
164 #define A_STRCPY(dst, src) A_CMN(string._strcpy((dst), (src)))
165 #define A_STRNCPY(dst, src, n) A_CMN(string._strncpy((dst), (src), (n)))
166 #define A_STRLEN(str) A_CMN(string._strlen(str))
167 #define A_STRCMP(str1, str2) A_CMN(string._strcmp((str1), (str2)))
168 #define A_STRNCMP(str1, str2, n) A_CMN(string._strncmp((str1), (str2), (n)))
171 #if SYSTEM_MODULE_PRINT
173 #define A_PRINTF_INIT() A_CMN(printf._printf_init())
174 #define A_PRINTF A_CMN(printf._printf)
176 #define A_PRINTF_INIT()
178 #endif /* SYSTEM_MODULE_PRINT */
180 #if SYSTEM_MODULE_UART
181 /* Serial port support */
182 #define A_UART_INIT() A_CMN(uart._uart_init())
184 #define A_UART_HWINIT(freq, baud) \
185 A_CMN(uart._uart_hwinit((freq), (baud)))
187 #define A_UART_ENABLED() (HOST_INTEREST->hi_uart_enable)
189 #define A_PUTS(str) A_CMN(uart._uart_str_out(str))
191 #define A_PUTC(ch) A_CMN(uart._uart_char_put(ch))
192 #define A_GETC(pCh) A_CMN(uart._uart_char_get(pCh))
194 #define A_UART_TASK() A_CMN(uart._uart_task())
195 #define A_UART_CONFIG(x) A_CMN(uart._uart_config(x))
199 #define A_UART_INIT()
201 #define A_UART_HWINIT(freq, baud)
203 #define A_UART_ENABLED()
210 #define A_UART_TASK()
211 #define A_UART_CONFIG(x)
215 #if SYSTEM_MODULE_MISC
217 #define A_RESET() A_CMN(misc._system_reset())
218 #define A_RESET_MAC() A_CMN(misc._mac_reset())
220 /* Assertion failure */
221 #define A_ASSFAIL(regdump) A_CMN(misc._assfail((regdump)))
223 /* Report a failure to the Host */
224 #define A_REPORT_FAILURE(data, len) \
225 A_CMN(misc._report_failure_to_host((data), (len)))
227 /* UNALIGNED references are used for ASSERTs */
228 #define A_MISALIGNED_LOAD_HANDLER(dump) A_CMN(misc._misaligned_load_handler(dump))
230 /* reture the host interface type */
231 #define A_IS_HOST_PRESENT() A_CMN(misc._is_host_present())
232 #define A_KBHIT(delay) A_CMN(misc._kbhit(delay))
233 #define A_GET_ROM_VER() A_CMN(misc._rom_version_get())
237 #define A_RESET_MAC()
239 /* Assertion failure */
240 #define A_ASSFAIL(regdump)
242 #define A_MISALIGNED_LOAD_HANDLER(dump)
244 /* Report a failure to the Host */
245 #define A_REPORT_FAILURE(data, len)
247 #define A_IS_HOST_PRESENT()
248 #define A_KBHIT(delay)
249 #define A_GET_ROM_VER()
252 //#if SYSTEM_MODULE_DBG
254 //#define A_DBG_INIT() A_CMN(dbg._dbg_init())
255 //#define A_DBG_TASK() A_CMN(dbg._dbg_task())
257 //#define A_DBG_INIT()
258 //#define A_DBG_TASK()
261 #if SYSTEM_MODULE_USB
263 #define A_USB_INIT() A_CMN(usb._usb_init())
264 #define A_USB_ROM_TASK() A_CMN(usb._usb_rom_task())
265 #define A_USB_FW_TASK() A_CMN(usb._usb_fw_task())
266 #define A_USB_INIT_PHY() A_CMN(usb._usb_init_phy())
268 #define A_USB_EP0_SETUP() A_CMN(usb._usb_ep0_setup())
269 #define A_USB_EP0_TX_DATA() A_CMN(usb._usb_ep0_tx_data())
270 #define A_USB_EP0_RX_DATA() A_CMN(usb._usb_ep0_rx_data())
272 #define A_USB_GET_CONFIG() A_CMN(usb._usb_get_configuration())
273 #define A_USB_SET_CONFIG() A_CMN(usb._usb_set_configuration())
275 #define A_USB_GET_INTERFACE() A_CMN(usb._usb_get_interface())
276 #define A_USB_SET_INTERFACE() A_CMN(usb._usb_set_interface())
278 #define A_USB_STANDARD_CMD() A_CMN(usb._usb_standard_cmd())
279 #define A_USB_VENDOR_CMD() A_CMN(usb._usb_vendor_cmd())
281 #define A_USB_POWER_OFF() A_CMN(usb._usb_power_off())
282 #define A_USB_RESET_FIFO() A_CMN(usb._usb_reset_fifo())
283 #define A_USB_GEN_WDT() A_CMN(usb._usb_gen_wdt())
284 #define A_USB_JUMP_BOOT() A_CMN(usb._usb_jump_boot())
286 #define A_USB_GET_DESCRIPTOR() A_CMN(usb._usb_get_descriptor())
287 #define A_USB_SET_ADDRESS() A_CMN(usb._usb_set_address())
288 #define A_USB_SET_FEATURE() A_CMN(usb._usb_set_feature())
289 #define A_USB_CLEAR_FEATURE() A_CMN(usb._usb_clr_feature())
291 #define A_USB_GET_STATUS() A_CMN(usb._usb_get_status())
292 #define A_USB_SETUP_DESC() A_CMN(usb._usb_setup_desc())
293 #define A_USB_STATUS_IN() A_CMN(usb._usb_status_in())
294 #define A_USB_REG_OUT() A_CMN(usb._usb_reg_out())
296 #define A_USB_EP0_TX() A_CMN(usb._usb_ep0_tx())
297 #define A_USB_EP0_RX() A_CMN(usb._usb_ep0_rx())
298 #define A_USB_CLK_INIT() A_CMN(usb._usb_clk_init())
303 #define A_USB_INIT_PHY()
305 #define A_USB_EP0_SETUP()
306 #define A_USB_EP0_TX()
307 #define A_USB_EP0_RX()
309 #define A_USB_GET_CONFIG()
310 #define A_USB_SET_CONFIG()
312 #define A_USB_GET_INTERFACE()
313 #define A_USB_SET_INTERFACE()
315 #define A_USB_STANDARD_CMD()
316 #define A_USB_VENDOR_CMD()
318 #define A_USB_POWER_OFF()
319 #define A_USB_RESET_FIFO()
320 #define A_USB_GEN_WDT()
321 #define A_USB_JUMP_BOOT()
323 #define A_USB_GET_DESCRIPTOR()
324 #define A_USB_SET_ADDRESS()
325 #define A_USB_SET_FEATURE()
326 #define A_USB_CLEAR_FEATURE()
328 #define A_USB_GET_STATUS()
329 #define A_USB_SETUP_DESC()
332 #define A_USB_STATUS_IN()
333 #define A_USB_REG_OUT()
335 #define A_USB_EP0_TX()
336 #define A_USB_EP0_RX()
338 #define A_USB_CLK_INIT()
341 #if SYSTEM_MODULE_INTR
342 /* Low-level interrupt support intended for use by OS modules */
343 #define A_INTR_GET_INTRENABLE() A_CMN(intr._get_intrenable())
344 #define A_INTR_SET_INTRENABLE(val) A_CMN(intr._set_intrenable(val))
345 #define A_INTR_GET_INTRPENDING() A_CMN(intr._get_intrpending())
346 #define A_INTR_UNBLOCK_ALL_INTRLVL() A_CMN(intr._unblock_all_intrlvl())
348 /* Interrupt support */
349 #define A_INTR_INIT() A_CMN(intr._intr_init())
351 #define A_INTR_DISABLE(pOld) \
353 *(pOld) = A_CMN(intr._intr_disable()); \
356 #define A_INTR_RESTORE(old) A_CMN(intr._intr_restore((old)))
358 #define A_INVOKE_ISR(inum) A_CMN(intr._intr_invoke_isr(inum))
360 #define A_INTR_MASK(inum) A_CMN(intr._intr_mask_inum(inum))
361 #define A_INTR_UNMASK(inum) A_CMN(intr._intr_unmask_inum(inum))
363 #define A_ATTACH_ISR(inum, isr, arg) A_CMN(intr._intr_attach_isr(inum, isr, arg))
365 #define A_INTR_INIT()
366 #define A_INTR_DISABLE(pOld)
367 #define A_INTR_RESTORE(old)
369 #define A_INTR_GET_INTRENABLE()
370 #define A_INTR_SET_INTRENABLE(val)
371 #define A_INTR_GET_INTRPENDING()
372 #define A_INTR_UNBLOCK_ALL_INTRLVL()
373 #define A_INVOKE_ISR(inum)
374 #define A_INTR_MASK(inum)
375 #define A_INTR_UNMASK(inum)
376 #define A_ATTACH_ISR(inum, isr, arg)
380 /* Tasklet Support */
381 #define A_TASKLET_INIT() A_CMN(tasklet._tasklet_init())
382 #define A_TASKLET_INIT_TASK(f, arg, t) A_CMN(tasklet._tasklet_init_task(f, arg, t))
383 #define A_TASKLET_DISABLE(t) A_CMN(tasklet._tasklet_disable(t))
384 #define A_TASKLET_SCHEDULE(t) A_CMN(tasklet._tasklet_schedule(t))
385 #define A_TASKLET_RUN() A_CMN(tasklet._tasklet_run())
388 /* RAM Allocation Support */
389 #if defined(__mips__)
390 #define alloc_arena_start _end
392 #if defined(__XTENSA__)
393 #define alloc_arena_start _end
396 #if SYSTEM_MODULE_CLOCK
398 #define A_CLOCK_INIT(refclk_guess) A_CMN(clock._clock_init(refclk_guess))
399 #define A_CLOCK_TICK() A_CMN(clock._clock_tick())
400 #define A_CLOCK_GET_TICK() A_CMN(clock._clock_get_tick())
403 * Get the number of millisecond ticks since the system was started.
404 * Note that this only approximates 1Ms. It's actually 32 ticks of
407 * Returns a A_UINT32 value.
409 #define A_MILLISECONDS() A_CMN(clock._milliseconds())
412 * Get the frequency of the reference clock, expressed as
413 * an A_refclk_speed_t.
415 #define A_REFCLK_SPEED_GET() A_CMN(clock._refclk_speed_get())
418 #define A_DELAY_USECS(us) A_CMN(clock._delay_us(us))
420 #define A_UART_FREQUENCY() A_CMN(clock._uart_frequency())
422 #define A_CLOCKREGS_INIT() A_CMN(clock._clockregs_init())
424 /* which_band is either A_BAND_24GHZ or A_BAND_5GHZ */
425 #define A_WLAN_BAND_SET(which_band) \
426 A_CMN(clock._wlan_band_set(which_band))
428 /* Called whenever the system clock changes speed */
429 #define A_SYSCLK_CHANGE() A_CMN(clock._sysclk_change())
433 #define A_CLOCK_INIT(refclk_guess)
434 #define A_CLOCK_TICK()
435 #define A_CLOCK_GET_TICK()
436 #define A_MILLISECONDS()
437 #define A_REFCLK_SPEED_GET()
438 #define A_DELAY_USECS(us)
439 #define A_UART_FREQUENCY()
440 #define A_CLOCKREGS_INIT()
441 #define A_WLAN_BAND_SET(which_band)
442 #define A_SYSCLK_CHANGE()
447 #define A_INIT_TIMER(pTimer, pFunction, pArg) \
448 A_CMN(timer._timer_setfn((pTimer), (pFunction), (pArg)))
450 /* Set a (possibly periodic) timer for "period" Milliseconds. */
451 #define A_TIMEOUT_MS(pTimer, period) \
452 A_CMN(timer._timer_arm((pTimer), (period)))
454 #define A_UNTIMEOUT(pTimer) \
455 A_CMN(timer._timer_disarm(pTimer))
457 #define A_TIMER_RUN() \
458 A_CMN(timer._timer_run())
460 #define A_PCI_BOOT_INIT() \
461 A_CMN(pci.pci_boot_init())
463 #define A_GMAC_BOOT_INIT() \
464 A_CMN(gmac.gmac_boot_init())
466 #if SYSTEM_MODULE_ALLOCRAM
467 /* Default size of ALLOCRAM area */
468 #define ARENA_SZ_DEFAULT 12000
470 #define A_ALLOCRAM_INIT(arena_start, arena_size) \
472 extern unsigned int alloc_arena_start; \
475 astart = (arena_start) ? (void *)(arena_start) : &alloc_arena_start; \
476 asize = (arena_size) ? (arena_size) : (ARENA_SZ_DEFAULT); \
477 A_CMN(allocram.cmnos_allocram_init((astart), (asize))); \
480 #define A_ALLOCRAM(nbytes) A_CMN(allocram.cmnos_allocram(0, (nbytes)))
482 #define A_ALLOCRAM_DEBUG() A_CMN(allocram.cmnos_allocram_debug())
485 #define A_ALLOCRAM_INIT(arena_start, arena_size)
486 #define A_ALLOCRAM(nbytes)
487 #define A_ALLOCRAM_DEBUG()
490 #if SYSTEM_MODULE_ROM_PATCH
492 #define A_ROMP_INIT() A_CMN(romp._romp_init())
493 #define A_ROMP_DOWNLOAD(x) A_CMN(romp._romp_download(x))
494 #define A_ROMP_DECODE(addr) A_CMN(romp._romp_decode(addr))
495 #define A_ROMP_INSTALL() A_CMN(romp._romp_install())
497 #define A_ROMP_INIT()
498 #define A_ROMP_DOWNLOAD(x)
499 #define A_ROMP_DECODE(addr)
500 #define A_ROMP_INSTALL()
503 #if SYSTEM_MODULE_WDT
505 #define A_WDT_INIT() A_CMN(wdt_timer._wdt_init())
506 #define A_WDT_ENABLE() A_CMN(wdt_timer._wdt_enable())
507 #define A_WDT_DISABLE() A_CMN(wdt_timer._wdt_disable())
508 #define A_WDT_SET(t) A_CMN(wdt_timer._wdt_set(t))
509 #define A_WDT_TASK() A_CMN(wdt_timer._wdt_task())
510 #define A_WDT_LASTBOOT() A_CMN(wdt_timer._wdt_last_boot())
511 #define A_WDT_RESET() A_CMN(wdt_timer._wdt_reset())
515 #define A_WDT_ENABLE()
516 #define A_WDT_DISABLE()
519 #define A_WDT_LASTBOOT()
520 #define A_WDT_RESET()
524 #if SYSTEM_MODULE_EEPROM
525 #define A_EEP_INIT() A_CMN(eep._eep_init())
526 #define A_EEP_READ(off, len, buf) A_CMN(eep._eep_read(off, len, buf))
527 #define A_EEP_WRITE(off, len, buf) A_CMN(eep._eep_write(off, len, buf))
528 #define A_EEP_IS_EXIST() A_CMN(eep._eep_is_exist())
531 #define A_EEP_READ(off, len, buf)
532 #define A_EEP_WRITE(off, len, buf)
533 #define A_EEP_IS_EXIST()
538 struct _A_os_linkage_check; /* OS-dependent */
540 typedef struct _A_cmnos_indirection_table {
541 int (* hal_linkage_check)(int sz, struct _A_os_linkage_check *);
542 unsigned int *start_bss;
543 void (* app_start)(void);
545 #if SYSTEM_MODULE_MEM
549 #if SYSTEM_MODULE_MISC
550 struct misc_api misc;
553 #if SYSTEM_MODULE_PRINT
554 struct printf_api printf;
557 #if SYSTEM_MODULE_UART
558 struct uart_api uart;
561 //#if SYSTEM_MODULE_DBG
562 // struct dbg_api dbg;
565 #if SYSTEM_MODULE_PCI
569 #if SYSTEM_MODULE_GMAC
570 struct gmac_api gmac;
573 #if SYSTEM_MODULE_USB
577 #if SYSTEM_MODULE_CLOCK
578 struct clock_api clock;
581 #if SYSTEM_MODULE_TIMER
582 struct timer_api timer;
585 #if SYSTEM_MODULE_INTR
586 struct intr_api intr;
589 #if SYSTEM_MODULE_ALLOCRAM
590 struct allocram_api allocram;
593 #if SYSTEM_MODULE_ROM_PATCH
594 struct romp_api romp;
597 #if SYSTEM_MODULE_WDT
598 struct wdt_api wdt_timer;
601 #if SYSTEM_MODULE_EEPROM
605 struct string_api string;
606 struct tasklet_api tasklet;
608 } _A_cmnos_indirection_table_t;
610 /* Module installation for cmnos modules */
612 #if SYSTEM_MODULE_MEM
613 extern void cmnos_mem_module_install(struct mem_api *);
616 #if SYSTEM_MODULE_MISC
617 extern void cmnos_misc_module_install(struct misc_api *);
620 #if SYSTEM_MODULE_PRINT
621 extern void cmnos_printf_module_install(struct printf_api *);
624 #if SYSTEM_MODULE_UART
625 extern void cmnos_uart_module_install(struct uart_api *);
628 //#if SYSTEM_MODULE_DBG
629 //extern void cmnos_dbg_module_install(struct dbg_api *);
632 #if SYSTEM_MODULE_USB
633 extern void cmnos_usb_module_install(struct usb_api *);
636 #if SYSTEM_MODULE_INTR
637 extern void cmnos_intr_module_install(struct intr_api *);
640 #if SYSTEM_MODULE_CLOCK
641 extern void cmnos_clock_module_install(struct clock_api *);
644 #if SYSTEM_MODULE_TIMER
645 extern void cmnos_timer_module_install(struct timer_api *);
648 #if SYSTEM_MODULE_ALLOCRAM
649 extern void cmnos_allocram_module_install(struct allocram_api *);
652 #if SYSTEM_MODULE_ROM_PATCH
653 extern void cmnos_romp_module_install(struct romp_api *);
656 #if SYSTEM_MODULE_WDT
657 extern void cmnos_wdt_module_install(struct wdt_api *);
660 #if SYSTEM_MODULE_EEPROM
661 extern void cmnos_eep_module_install(struct eep_api *);
664 #if SYSTEM_MODULE_PCI
665 extern void cmnos_pci_module_install(struct pci_api *);
668 extern void cmnos_tasklet_module_install(struct tasklet_api *);
670 extern void cmnos_string_module_install(struct string_api *tbl);
672 #endif /* __CMNOS_API_H__ */