Overview   API Reference  

compat/l4io.h

00001 #if !defined(__L4VMM_INCLUDE_VMM_COMPAT_L4IO_H__)
00002 #define __L4VMM_INCLUDE_VMM_COMPAT_L4IO_H__
00003 
00004 //
00005 // L4 includes
00006 //
00007 #include <l4/vmm/api/l4io.h>
00008 
00009 //
00010 // define macros to stay compatible with L4io (Miscellaneous):
00011 //     l4io_init & l4io_info_page are allowed to be called.
00012 //
00013 /* nothing to define here */
00014 
00015 //
00016 // define macros to stay compatible with L4io (PCI support):
00017 //
00018 #define l4io_pci_find_slot              l4vmm_pci_find_slot
00019 #define l4io_pci_find_device            l4vmm_pci_find_device
00020 #define l4io_pci_find_class             l4vmm_pci_find_class
00021 #define l4io_pci_readb_cfg              l4vmm_pci_read_config_space8
00022 #define l4io_pci_readw_cfg              l4vmm_pci_read_config_space16
00023 #define l4io_pci_readl_cfg              l4vmm_pci_read_config_space32
00024 #define l4io_pci_writeb_cfg             l4vmm_pci_write_config_space8
00025 #define l4io_pci_writew_cfg             l4vmm_pci_write_config_space16
00026 #define l4io_pci_writel_cfg             l4vmm_pci_write_config_space32
00027 
00028 //
00029 // define macros to stay compatible with L4io (PCI support):
00030 //     these functions are implemented as stubs and always return 0.
00031 //
00032 #define l4io_pci_enable                 l4vmm_pci_enable
00033 #define l4io_pci_disable                l4vmm_pci_disable
00034 #define l4io_pci_set_master             l4vmm_pci_set_master
00035 #define l4io_pci_set_pm                 l4vmm_pci_set_pm
00036 
00037 //
00038 // define macros to stay compatible with L4io (resource allocation):
00039 //
00040 #define l4io_request_region             l4vmm_iospace_request_region
00041 #define l4io_release_region             l4vmm_iospace_release_region
00042 #define l4io_request_mem_region         l4vmm_mmio_request_region
00043 #define l4io_search_mem_region          l4vmm_mmio_search_region
00044 #define l4io_release_mem_region         l4vmm_mmio_release_region
00045 
00046 //
00047 // define macros to stay compatible with L4io (resource allocation):
00048 //     these functions are missing, due to an incomplete L4vmm API.
00049 //
00050 #define l4io_request_dma                __l4io_request_dma__is_missing_in_l4vmm__
00051 #define l4io_release_dma                __l4io_release_dma__is_missing_in_l4vmm__
00052 
00053 //
00054 // define macros to stay compatible with L4io (recently added functions):
00055 //     these functions are missing, due to an incomplete L4vmm API.
00056 //
00057 #define l4io_desc_first_device          __l4io_desc_first_device__is_missing_in_l4vmm__
00058 #define l4io_desc_next_device           __l4io_desc_next_device__is_missing_in_l4vmm__
00059 #define l4io_desc_lookup_device         __l4io_desc_lookup_device__is_missing_in_l4vmm__
00060 #define l4io_desc_lookup_resource       __l4io_desc_lookup_resource__is_missing_in_l4vmm__
00061 
00062 #define l4io_request_mem_region_name    __l4io_request_mem_region_name__is_missing_in_l4vmm__
00063 #define l4io_get_irq_name               __l4io_get_irq_name__is_missing_in_l4vmm__
00064 
00065 #endif
00066 
00067 // ***** end of source ***** //
00068 

L4vmm Reference Manual, written by Mario Schwalbe  © 2006-2008