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

📄 sysinfo.h

📁 QNX ADS BSP code for i.MX27 chips
💻 H
字号:
/* * $QNXLicenseC:   * Copyright 2005, QNX Software Systems. All Rights Reserved. * * This source code may contain confidential information of QNX Software  * Systems (QSS) and its licensors.  Any use, reproduction, modification,  * disclosure, distribution or transfer of this software, or any software  * that includes or is based upon any of this code, is prohibited unless  * expressly authorized by QSS by written agreement.  For more information  * (including whether this source code file has been published) please * email licensing@qnx.com. $*//* *  hw/sysinfo.h * */#ifndef __HWSYSINFO_H_INCLUDED#ifndef __PLATFORM_H_INCLUDED#include <sys/platform.h>#endif#include _NTO_HDR_(_pack64.h)__BEGIN_DECLS#define HWI_NULL_OFF			((_Uint16t)-1)#define HWI_ITEM_ROOT_HW		"hw"#define HWI_ITEM_BUS_PCI		"pci"#define HWI_ITEM_BUS_ISA		"isa"#define HWI_ITEM_BUS_EISA		"eisa"#define HWI_ITEM_BUS_MCA		"mca"#define HWI_ITEM_BUS_PCMCIA		"pcmcia"#define HWI_ITEM_BUS_UNKNOWN	"unknown"#define HWI_ITEM_DEVCLASS_SERIAL	"serial"#define HWI_ITEM_DEVCLASS_PARALLEL	"parallel"#define HWI_ITEM_DEVCLASS_DMA		"dma"#define HWI_ITEM_DEVCLASS_RTC		"rtc"#define HWI_ITEM_DEVCLASS_DISK		"disk"#define HWI_ITEM_DEVCLASS_NETWORK	"network"#define HWI_ITEM_DEVCLASS_MISC		"misc"struct hwi_prefix {	_Uint16t			size;	_Uint16t			name;};struct hwi_item {	struct hwi_prefix	prefix;	_Uint16t			itemsize;	_Uint16t			itemname;	_Uint16t			owner;	_Uint16t			kids;};#define HWI_TAG_NAME_group	"Group"#define HWI_TAG_ALIGN_group	(sizeof(_Uint32t))struct hwi_group {	struct hwi_item		item;};#define HWI_TAG_NAME_bus	"Bus"#define HWI_TAG_ALIGN_bus	(sizeof(_Uint32t))struct hwi_bus {	struct hwi_item		item;};#define HWI_TAG_NAME_device		"Device"#define HWI_TAG_ALIGN_device	(sizeof(_Uint32t))struct hwi_device {	struct hwi_item		item;	_Uint32t			pnpid;};#define HWI_TAG_NAME_location	"location"#define HWI_TAG_ALIGN_location	(sizeof(_Uint64t))struct hwi_location {	struct hwi_prefix	prefix;	_Uint32t			len;	_Uint64t			base;	_Uint16t			regshift;	_Uint16t			addrspace;};#define HWI_TAG_NAME_irq		"irq"#define HWI_TAG_ALIGN_irq		(sizeof(_Uint32t))struct hwi_irq {	struct hwi_prefix	prefix;	_Uint32t			vector;};#define HWI_TAG_NAME_irqmapping		"irqmapping"#define HWI_TAG_ALIGN_irqmapping	(sizeof(_Uint32t))struct hwi_irqmapping {	struct hwi_prefix	prefix;	_Uint32t			irq;	_Uint16t			num;	struct {		_Uint8t				devfunc;		_Int8t				adjust;	}					specific[1];	/* expands out as needed */};#define HWI_TAG_NAME_diskgeometry	"diskgeometry"#define HWI_TAG_ALIGN_diskgeometry	(sizeof(_Uint32t))struct hwi_diskgeometry {	struct hwi_prefix	prefix;	_Uint8t				disknumber;	_Uint8t				sectorsize;	/* as a power of two */	_Uint16t			heads;	_Uint16t			cyls;	_Uint16t			sectors;	_Uint32t			nblocks;};#define HWI_TAG_NAME_regname	"regname"#define HWI_TAG_ALIGN_regname	(sizeof(_Uint32t))struct hwi_regname {	struct hwi_prefix	prefix;	_Uint16t			regname;	_Uint16t			offset;};#define HWI_TAG_NAME_inputclk	"inputclk"#define HWI_TAG_ALIGN_inputclk	(sizeof(_Uint32t))struct hwi_inputclk {	struct hwi_prefix	prefix;	_Uint32t			clk;	_Uint32t			div;};#define HWI_TAG_NAME_nicaddr	"nicaddr"#define HWI_TAG_ALIGN_nicaddr	(sizeof(_Uint32t))struct hwi_nicaddr {	struct hwi_prefix	prefix;	_Uint32t			len;	_Uint8t				addr[1];	/* expands out as needed */};#define HWI_TAG_NAME_nicphyaddr		"nicphyaddr"#define HWI_TAG_ALIGN_nicphyaddr	(sizeof(_Uint32t))struct hwi_nicphyaddr {	struct hwi_prefix	prefix;	_Uint32t			addr;};#define HWI_TAG_NAME_pad		"pad"#define HWI_TAG_ALIGN_pad		(sizeof(_Uint32t))struct hwi_pad {	struct hwi_prefix	prefix;};typedef union {	struct hwi_prefix			prefix;	struct hwi_item				item;	struct hwi_group			group;	struct hwi_bus				bus;	struct hwi_device			device;	struct hwi_location 		location;	struct hwi_irq		 		irq;	struct hwi_irqmapping 		irqmapping;	struct hwi_diskgeometry 	diskgeometry;	struct hwi_regname			regname;	struct hwi_inputclk			inputclk;	struct hwi_nicaddr			nicaddr;	struct hwi_nicphyaddr		nicphyaddr;	struct hwi_pad				pad;} hwi_tag;void		*__hwi_base(void);char		*__hwi_find_string(unsigned __off);unsigned	hwi_find_tag(unsigned __start, int __curr_item, const char *__tagname);unsigned 	hwi_find_item(unsigned __start, ...);unsigned	hwi_next_tag(unsigned __off, int __curr_item);unsigned	hwi_next_item(unsigned __off);unsigned	hwi_tag2off(void *);void	 	*hwi_off2tag(unsigned);__END_DECLS#include _NTO_HDR_(_packpop.h)#define __HWSYSINFO_H_INCLUDED#endif

⌨️ 快捷键说明

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