⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osif.h

📁 7号信令功能代码,为开源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/*************************************************************************                      Operating System Interface                       ***************************************************************************									** These are routines that call kernel routines indirectly.  This allows	** driver writers to reference the lis_... names in compiled code	** and the osif.c module itself will use the mangled names of the	** kernel routines when "modversions" is set.				**									** Include this file AFTER any linux includes.				**									** This file is only interpreted for LINUX builds.  User-level and other	** portable builds bypass this file.					**									*************************************************************************/#if defined(LINUX) && !defined(OSIF_H)#define OSIF_H		/* file included */#ident "@(#) LiS osif.h 1.35 11/23/03"#ifndef LINUX_VERSION_CODE#include <linux/version.h>#endif#if LINUX_VERSION_CODE >= 0x020100	/* 2.1 kernel */# if !defined(_SPARC_LIS_) && !defined(LINUX_PCI_H)#  ifdef RH_71_KLUDGE			/* boogered up incls in 2.4.2 */#  undef CONFIG_HIGHMEM			/* b_page has semi-circular reference */#  endif# include <linux/pci.h>			/* need struct definitions */# endif#endif#ifndef _STDARG_H#include <stdarg.h>			/* for va_list */#endif#ifndef _LINUX_WAIT_H#include <linux/wait.h>			/* for struct wait_queue */#endif#ifndef _LINUX_TIMER_H#include <linux/timer.h>                /* for struct timer_list */#endif#ifndef _LINUX_TIME_H			/* for struct timeval */#include <linux/time.h>#endif#if !defined(INCL_FROM_OSIF_DRIVER)/* * Redefine the "official" kernel names of these routines to the * "lis_..." names. * * Modversions has already defined most of these names to be the * version-mangled form.  So we have to test each one to see if * it has already been defined before redefining to the lis_... form. * This is messy but saves many warning messages when compiling * with modversions. */#if (!defined(_SPARC_LIS_) && !defined(_PPC_LIS_))#ifdef pcibios_present#undef pcibios_present#endif#define	pcibios_present			lis_pcibios_present#ifdef pcibios_init#undef pcibios_init#endif#define	pcibios_init			lis_pcibios_init#ifdef pcibios_find_class#undef pcibios_find_class#endif#define	pcibios_find_class		lis_pcibios_find_class#ifdef pcibios_find_device#undef pcibios_find_device#endif#define	pcibios_find_device		lis_pcibios_find_device#ifdef pcibios_read_config_byte#undef pcibios_read_config_byte#endif#define	pcibios_read_config_byte	lis_pcibios_read_config_byte#ifdef pcibios_read_config_word#undef pcibios_read_config_word#endif#define	pcibios_read_config_word	lis_pcibios_read_config_word#ifdef pcibios_read_config_dword#undef pcibios_read_config_dword#endif#define	pcibios_read_config_dword	lis_pcibios_read_config_dword#ifdef pcibios_write_config_byte#undef pcibios_write_config_byte#endif#define	pcibios_write_config_byte	lis_pcibios_write_config_byte#ifdef pcibios_write_config_word#undef pcibios_write_config_word#endif#define	pcibios_write_config_word	lis_pcibios_write_config_word#ifdef pcibios_write_config_dword#undef pcibios_write_config_dword#endif#define	pcibios_write_config_dword	lis_pcibios_write_config_dword#ifdef pcibios_strerror#undef pcibios_strerror#endif#define	pcibios_strerror		lis_pcibios_strerror#endif  /* ifndef _SPARC_LIS_, _PPC_LIS_ */#if LINUX_VERSION_CODE >= 0x020100	/* 2.1 kernel */#ifdef pci_find_device#undef pci_find_device#endif#define	pci_find_device			lis_osif_pci_find_device#ifdef pci_find_class#undef pci_find_class#endif#define	pci_find_class			lis_osif_pci_find_class#ifdef pci_find_slot#undef pci_find_slot#endif#define	pci_find_slot			lis_osif_pci_find_slot#ifdef pci_read_config_byte#undef pci_read_config_byte#endif#define	pci_read_config_byte		lis_osif_pci_read_config_byte#ifdef pci_read_config_word#undef pci_read_config_word#endif#define	pci_read_config_word		lis_osif_pci_read_config_word#ifdef pci_read_config_dword#undef pci_read_config_dword#endif#define	pci_read_config_dword		lis_osif_pci_read_config_dword#ifdef pci_write_config_byte#undef pci_write_config_byte#endif#define	pci_write_config_byte		lis_osif_pci_write_config_byte#ifdef pci_write_config_word#undef pci_write_config_word#endif#define	pci_write_config_word		lis_osif_pci_write_config_word#ifdef pci_write_config_dword#undef pci_write_config_dword#endif#define	pci_write_config_dword		lis_osif_pci_write_config_dword#ifdef pci_set_master#undef pci_set_master#endif#define	pci_set_master			lis_osif_pci_set_master#ifdef pci_enable_device#undef pci_enable_device#endif#define pci_enable_device               lis_osif_pci_enable_device#ifdef pci_disable_device#undef pci_disable_device#endif#define pci_disable_device               lis_osif_pci_disable_device#ifdef pci_module_init#undef pci_module_init#endif#define pci_module_init       lis_osif_pci_module_init#ifdef pci_unregister_driver#undef pci_unregister_driver#endif#define pci_unregister_driver lis_osif_pci_unregister_driver#endif					/* 2.1 kernel */#if LINUX_VERSION_CODE >= 0x020400	/* 2.4 kernel */#if (!defined(_S390_LIS_) && !defined(_S390X_LIS_))#ifdef pci_alloc_consistent#undef pci_alloc_consistent#endif#define pci_alloc_consistent lis_osif_pci_alloc_consistent#ifdef pci_free_consistent#undef pci_free_consistent#endif#define pci_free_consistent lis_osif_pci_free_consistent#ifdef pci_map_single#undef pci_map_single#endif#define pci_map_single lis_osif_pci_map_single#ifdef pci_unmap_single#undef pci_unmap_single#endif#define pci_unmap_single lis_osif_pci_unmap_single#ifdef pci_map_page#undef pci_map_page#endif#define pci_map_page lis_osif_pci_map_page#ifdef pci_unmap_page#undef pci_unmap_page#endif#define pci_unmap_page lis_osif_pci_unmap_page#ifdef pci_map_sg#undef pci_map_sg#endif#define pci_map_sg lis_osif_pci_map_sg#ifdef pci_unmap_sg#undef pci_unmap_sg#endif#define pci_unmap_sg lis_osif_pci_unmap_sg#ifdef pci_dma_sync_single#undef pci_dma_sync_single#endif#define pci_dma_sync_single lis_osif_pci_dma_sync_single#ifdef pci_dma_sync_sg#undef pci_dma_sync_sg#endif#define pci_dma_sync_sg lis_osif_pci_dma_sync_sg#ifdef pci_dma_supported#undef pci_dma_supported#endif#define pci_dma_supported lis_osif_pci_dma_supported#ifdef pci_dac_dma_supported#undef pci_dac_dma_supported#endif#define pci_dac_dma_supported lis_osif_pci_dac_dma_supported#ifdef pci_set_dma_mask#undef pci_set_dma_mask#endif#define pci_set_dma_mask lis_osif_pci_set_dma_mask#ifdef pci_dac_set_dma_mask#undef pci_dac_set_dma_mask#endif#define pci_dac_set_dma_mask lis_osif_pci_dac_set_dma_mask#ifdef pci_dac_page_to_dma#undef pci_dac_page_to_dma#endif#define pci_dac_page_to_dma lis_osif_pci_dac_page_to_dma#ifdef pci_dac_dma_to_page#undef pci_dac_dma_to_page#endif#define pci_dac_dma_to_page lis_osif_pci_dac_dma_to_page#ifdef pci_dac_dma_to_offset#undef pci_dac_dma_to_offset#endif#define pci_dac_dma_to_offset lis_osif_pci_dac_dma_to_offset#ifdef pci_dac_dma_sync_single#undef pci_dac_dma_sync_single#endif#define pci_dac_dma_sync_single lis_osif_pci_dac_dma_sync_single#ifdef sg_dma_address#undef sg_dma_address#endif#define sg_dma_address lis_osif_sg_dma_address#ifdef sg_dma_len#undef sg_dma_len#endif#define sg_dma_len lis_osif_sg_dma_len#endif          /* S390 or S390X */#endif#ifdef request_irq#undef request_irq#endif#define	request_irq			lis_request_irq#ifdef free_irq#undef free_irq#endif#define	free_irq			lis_free_irq#ifdef disable_irq#undef disable_irq#endif#define	disable_irq			lis_disable_irq#ifdef enable_irq#undef enable_irq#endif#define	enable_irq			lis_enable_irq#ifdef cli# undef cli#endif#define cli                   		lis_osif_cli#ifdef sti# undef sti#endif#define sti                   		lis_osif_sti#ifdef ioremap#undef ioremap#endif#define	ioremap				lis_ioremap#ifdef ioremap_nocache#undef ioremap_nocache#endif#define	ioremap_nocache			lis_ioremap_nocache#ifdef iounmap#undef iounmap#endif#define	iounmap				lis_iounmap#ifdef vremap#undef vremap#endif#define	vremap				lis_vremap#ifdef virt_to_phys#undef virt_to_phys#endif#define virt_to_phys			lis_virt_to_phys#ifdef phys_to_virt#undef phys_to_virt#endif#define phys_to_virt			lis_phys_to_virt#ifdef check_region#undef check_region#endif#define	check_region			lis_check_region#ifdef request_region#undef request_region#endif#define	request_region			lis_request_region#ifdef release_region#undef release_region#endif#define	release_region			lis_release_region#ifdef add_timer#undef add_timer#endif#define add_timer			lis_add_timer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -