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

📄 prom.h

📁 Linux内核源代码 为压缩文件 是<<Linux内核>>一书中的源代码
💻 H
字号:
/* * Definitions for talking to the Open Firmware PROM on * Power Macintosh computers. * * Copyright (C) 1996 Paul Mackerras. */#ifdef __KERNEL__#ifndef _PPC_PROM_H#define _PPC_PROM_H#include <linux/config.h>typedef void *phandle;typedef void *ihandle;extern char *prom_display_paths[];extern unsigned int prom_num_displays;#ifndef CONFIG_MACH_SPECIFICextern int have_of;#endifstruct address_range {	unsigned int space;	unsigned int address;	unsigned int size;};struct interrupt_info {	int	line;	int	sense;		/* +ve/-ve logic, edge or level, etc. */};struct reg_property {	unsigned int address;	unsigned int size;};struct translation_property {	unsigned int virt;	unsigned int size;	unsigned int phys;	unsigned int flags;};struct property {	char	*name;	int	length;	unsigned char *value;	struct property *next;};struct device_node {	char	*name;	char	*type;	phandle	node;	int	n_addrs;	struct	address_range *addrs;	int	n_intrs;	struct	interrupt_info *intrs;	char	*full_name;	struct	property *properties;	struct	device_node *parent;	struct	device_node *child;	struct	device_node *sibling;	struct	device_node *next;	/* next device of same type */	struct	device_node *allnext;	/* next in list of all nodes */};struct prom_args;typedef void (*prom_entry)(struct prom_args *);/* Prototypes */extern void abort(void);extern unsigned long prom_init(int, int, prom_entry);extern void prom_print(const char *msg);extern void relocate_nodes(void);extern void finish_device_tree(void);extern struct device_node *find_devices(const char *name);extern struct device_node *find_type_devices(const char *type);extern struct device_node *find_path_device(const char *path);extern struct device_node *find_compatible_devices(const char *type,						   const char *compat);extern struct device_node *find_pci_device_OFnode(unsigned char bus,	unsigned char dev_fn);extern struct device_node *find_phandle(phandle);extern struct device_node *find_all_nodes(void);extern int device_is_compatible(struct device_node *device, const char *);extern int machine_is_compatible(const char *compat);extern unsigned char *get_property(struct device_node *node, const char *name,				   int *lenp);extern void print_properties(struct device_node *node);extern int call_rtas(const char *service, int nargs, int nret,		     unsigned long *outputs, ...);extern void prom_drawstring(const char *c);extern void prom_drawhex(unsigned long v);extern void prom_drawchar(char c);extern void map_bootx_text(void);#endif /* _PPC_PROM_H */#endif /* __KERNEL__ */

⌨️ 快捷键说明

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