Main Page | Directories | File List | Globals

pcibus_core.c File Reference

#include <agnix/agnix.h>
#include <agnix/adi/adi.h>
#include <agnix/list.h>
#include <agnix/spinlock.h>
#include <agnix/console.h>

Include dependency graph for pcibus_core.c:

Go to the source code of this file.

Defines

#define MOD_NAME   "PCI: \t"

Functions

int adi_pcibus_init (void)

Variables

list_head pcibus_list
list_head pcidev_list
spinlock_t pcibus_list_lock
spinlock_t pcidev_list_lock
int pcibus_disable = 0


Define Documentation

#define MOD_NAME   "PCI: \t"
 

Definition at line 20 of file pcibus_core.c.


Function Documentation

int adi_pcibus_init void   ) 
 

Definition at line 29 of file pcibus_core.c.

References MOD_NAME, pcibus_irq_init(), pcibus_list, pcibus_ops_init(), pcibus_scan_all(), pcidev_list, and printk().

Referenced by adi_buses_init().

00030 {
00031     printk(MOD_NAME "initializing PCI bus\n");
00032 
00033     INIT_LIST_HEAD(&pcibus_list);
00034     INIT_LIST_HEAD(&pcidev_list);
00035     spin_lock_init(&pcibus_lock);
00036     spin_lock_init(&pcidev_lock);
00037 
00038     if (pcibus_ops_init() < 0) {
00039         printk(MOD_NAME "disabling PCI subsystem\n");
00040         return -1;
00041     }
00042     
00043     pcibus_scan_all();
00044     pcibus_irq_init();
00045 
00046     return 0;
00047 }

Here is the call graph for this function:


Variable Documentation

int pcibus_disable = 0
 

Definition at line 27 of file pcibus_core.c.

Referenced by pcibus_scan_all().

struct list_head pcibus_list
 

Definition at line 22 of file pcibus_core.c.

Referenced by adi_pcibus_init(), and pcibus_add_bus().

spinlock_t pcibus_list_lock
 

Definition at line 24 of file pcibus_core.c.

Referenced by pcibus_add_bus().

struct list_head pcidev_list
 

Definition at line 23 of file pcibus_core.c.

Referenced by adi_pcibus_init(), pcibus_add_device(), pcibus_find_device_by_fn(), pcibus_find_device_by_id(), pcibus_irq_all_set(), pcibus_irq_dev_set(), and pcibus_print_all().

spinlock_t pcidev_list_lock
 

Definition at line 25 of file pcibus_core.c.

Referenced by pcibus_add_device(), pcibus_find_device_by_fn(), pcibus_find_device_by_id(), pcibus_irq_all_set(), and pcibus_print_all().

Dokumentacje wygenerowano programem Doxygen 1.4.2 dla projektu Agnix