dev_pci.c

来自「国产CPU-龙芯(loongson)BIOS源代码」· C语言 代码 · 共 30 行

C
30
字号
#include <sys/param.h>#include <sys/device.h>static int pci_match(struct device *parent, void *match, void *aux);static void pci_attach(struct device *parent, struct device *self, void *aux);struct cfattach pci_ca = {    0, pci_match, pci_attach, NULL};struct cfdriver pci_cd = {	NULL, "pci", DV_DULL};static intpci_match(parent, match, aux)	struct device *parent;	void *match;	void *aux;{	return (1);}static voidpci_attach(parent, self, aux)	struct device *parent, *self;	void *aux;{}

⌨️ 快捷键说明

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