Can kldload trigger pci bus rescan?

2006-04-26 Thread hongz
Hi guys: I tried to use kldload to load our HBA driver. But the driver's pci probe function can not find the HBA card! Does it mean that kldload can not trigger pci bus rescan? If so, what should I do for triggering pci bus rescan after loading our pci driver? Thank you for your help! H

help:How to map a physical address into a kernel address?

2006-05-11 Thread hongz
Hi guys: To access sg_table in kernel address, I need to map the starting physical address of a segment into a kernel address. As I know that, we can use phystovirt()/bustovirt(), or kmap()/kmap_atomic() to map a bus/physical address or a physical page into a kernel address in Linux, but I did

help:Makefile template for device drivers with multiple directories

2006-06-08 Thread hongz
Hi guys: Need your helps again! The following is a Makefile template for a device driver in FreeBSD. But when my driver source codes locate in multiple directories (such as under osd/, engine/, and cam/), how to write the Makefile? I have tried but still can not get through this, please give me

Help:why bus resource shortage?

2006-06-15 Thread hongz
Hi guys: I failed to get the pci bus resource after the driver is loaded (sc->r_mem is NULL after bus_alloc_resource_any is called). Is it because bus resources have been consumed by other drivers? Or other something happened? Please help me on this! Thanks! Hong Notes: /* get reso