LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: Alpha1981

请高手指点pci_pool_alloc,pci_pool_free等函数的定义在哪个文件里?

[复制链接]
 楼主| 发表于 2005-4-10 14:23:08 | 显示全部楼层
终于解决了
原来是我那个linux一定要把"UHCI"编译成模块,而不是编进内核
不过还是要谢谢楼上的技术支持
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-10 21:58:40 | 显示全部楼层
现在问题又来了
#insmod usb-uhci.o
usb-uhci.o:unresolved symbol pci_pool_free
usb-uhci.o:unresolved symbol pci_pool_alloc
usb-uhci.o:unresolved symbol pci_pool_destory
usb-uhci.o: unresolved symbol pci_pool_create
我不知道为什么会没有这些符号?
请高手指点
回复 支持 反对

使用道具 举报

发表于 2005-4-11 19:49:30 | 显示全部楼层
drivers/pci/pci.c:        :EXPORT_SYMBOL (pci_pool_free);
drivers/pci/Makefile  :# Makefile for the PCI bus specific drivers.

这样看,你是 PCI 的driver没有编
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-11 20:34:11 | 显示全部楼层
我上面的drivers/pci/pci.c: :EXPORT_SYMBOL (pci_pool_free);有的
我的Makefile是
#
# Makefile for the PCI bus specific drivers.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definition is now inherited from the
# parent makefile.
#

O_TARGET := driver.o

export-objs := pci.o

obj-$(CONFIG_PCI) += pci.o quirks.o compat.o names.o bridge.o
obj-$(CONFIG_PROC_FS) += proc.o

ifndef CONFIG_SPARC64
obj-$(CONFIG_PCI) += setup-res.o
endif

#
# Some architectures use the generic PCI setup functions
#
obj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o
obj-$(CONFIG_ARM) += setup-bus.o setup-irq.o
obj-$(CONFIG_PARISC) += setup-bus.o
obj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
obj-$(CONFIG_ALL_PPC) += setup-bus.o
obj-$(CONFIG_SGI_IP27) += setup-irq.o
obj-$(CONFIG_SGI_IP32) += setup-irq.o

ifndef CONFIG_X86
obj-y += syscall.o
endif

include $(TOPDIR)/Rules.make

names.o: names.c devlist.h classlist.h

devlist.h classlist.h: pci.ids gen-devlist
        ./gen-devlist <pci.ids

gen-devlist: gen-devlist.c
        $(HOSTCC) $(HOSTCFLAGS) -o gen-devlist gen-devlist.c
楼上帮忙看看
回复 支持 反对

使用道具 举报

发表于 2005-4-11 21:57:34 | 显示全部楼层
大概就是说你在  make menuconfig 的时候有关PCI的 driver 没有选中
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-12 08:07:35 | 显示全部楼层
我不知道具体应该选哪个选项才能使PCI 的driver被选上
请楼上的指点
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-20 08:12:23 | 显示全部楼层
终于知道原因了
原来intel的pxa255里用的philips的isp1161,所以不需要pci support
只要在use support里把ips1161选上就可以(默认就是选上的)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表