#include <agnix/init.h>#include <agnix/adi/adi.h>#include <agnix/irq.h>#include <agnix/console.h>Include dependency graph for adi_chips.c:

Go to the source code of this file.
Defines | |
| #define | MOD_NAME "CHIPS: " |
Functions | |
| int | adi_register_chip (struct chip_s *chip) |
| void __init | adi_chips_init (void) |
Variables | |
| const char * | chip_class_names [] |
|
|
Definition at line 19 of file adi_chips.c. |
|
|
Definition at line 52 of file adi_chips.c. References dma_init(), i8254_init(), i8259a_init(), intel_init(), MOD_NAME, printk(), and rtc_init(). Referenced by start_kernel(). 00053 {
00054 printk(MOD_NAME "Initializing chip drivers\n");
00055
00056 i8259a_init();
00057 i8254_init();
00058 rtc_init();
00059 dma_init();
00060 intel_init(0);
00061 }
Here is the call graph for this function: ![]() |
|
|
Definition at line 25 of file adi_chips.c. References chip_class_names, MOD_NAME, and printk(). Referenced by dma_init(), i8254_init(), i8259a_init(), intel_init(), and rtc_init(). 00026 {
00027 int ret = 0;
00028
00029 if (chip->chip_name)
00030 printk(MOD_NAME "Registering %s chip\t (class %s)\n", chip->chip_name, chip_class_names[chip->chip_class]);
00031 else
00032 printk(MOD_NAME "Registering unknown-name chip\n", chip->chip_name);
00033
00034 spin_lock_init(&chip->chip_lock);
00035
00036 /* + request resources */
00037
00038 chip->chip_state = CHIP_STATE_INITIALIZING;
00039
00040 if ((chip->chip_ops) && (chip->chip_ops->init)) {
00041
00042 ret = chip->chip_ops->init(chip);
00043 if (ret)
00044 return -1;
00045 else
00046 chip->chip_state = CHIP_STATE_WORKING;
00047 }
00048
00049 return 0;
00050 }
Here is the call graph for this function: ![]() |
|
|
Initial value: {
"CPU", "PIC", "PIT", "RTC", "DMA"
}
Definition at line 21 of file adi_chips.c. Referenced by adi_register_chip(). |