help:Makefile template about device driver with multiple directories

2006-06-08 Thread hongz
Hi guys:

 

I have one urgent question to ask, please help me on this!

 

The following is a Makefile template for device driver with all sources
codes locating in the same directory. My question is how to write the
Makefile when the driver source codes located different directories. For
example, my driver source codes maybe include: osd/*.c engine/*.c and
cam/*.c.  Could someone provide me such a Makefile template? Your help will
be highly appreciated!

 

.PATH:  .

KMOD= shasta

 

SRCS=  shasta.c  event.c .

SRCS += device_if.h bus_if.h pci_if.h

SRCS += opt_scsi.h opt_cam.h

   

.include bsd.kmod.mk

 

Yours,

 

Hong

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Help:How to build a modular FreeBSD kernel?

2006-04-27 Thread hongz
Hi guys:

 

I want to build a modular FreeBSD kernel, so I can make some updates to some
modules such as ATA module in kernel. Is it possible? If possible, please
tell me how to do it. 

 

Thank you for your help!

 

Hong

 

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


help

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!

 

Hong

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How to do physical-to-virtual translation in FreeBSD? Does FreeBSD support kmap() or kmap_atomic()?

2006-04-21 Thread hongz
Hi guys:

 

We are doing HBA driver (Soft Raid5) porting from Linux to FreeBSD. As we
need to do XOR in kernel space, we need to map a physical address into a
virtual address. In Linux, we use kmap_atomic() to implement it, and could
you tell me how to do it in FreeBSD? Thank for your help!

 

Best wishes,

 

Hong Zhao

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]