Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Mar 2004 12:03:43 +0100
From:      thefly@acaro.org
To:        freebsd-hackers@freebsd.org
Subject:   [Driver WD1100] Compilation
Message-ID:  <20040302110343.20597.qmail@nexlab.it>

next in thread | raw e-mail | index | archive | help
hello, i've got a question about the driver compilation. I finally wrote
my driver, and i'm trying to compile it to test it. I tryed to use
/usr/share/examples/drivers/make_device_driver.sh to build the whole
stuff, but it doesn't work... Anyway I put the driver.c and the header i
built to /usr/src/sys/dev/wd/ and trying to compile it with gcc -I/sys
but it gives me a bunch of errors about definitions it doesn't find
(definitions of kernel functions and structures). I didn't find this
question in the FAQ so my question is: now that the .c is written, how
do i compile it and link it to the kernel image? My previous post was
about the use of the NewBus interface for accessing PCI devices, could
some of you please have a look at my driver (it's about 200 lines with
includes and comments and stuff)
http://chiakotay.acaro.org/acaro/wd1100/  . 

Thanks in advance, 

Claudio Martella



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040302110343.20597.qmail>