I am having a hard time figuring out where in the source tree the driver source would belong.
My device is a driver for external GPIO pins to be named sch311x_gpio for a SMSC SCH3114.
I see the following relevant spots:
/usr/src/sys/dev/sms (exists with an LAN driver >my device manufacturer SMSC=SMS)
/usr/src/sys/i386/i386/ (Gonzo's diff patch uses this directory)
/usr/src/sys/dev/gpio(seems to be spot for gpio_if.m, gpiobus.c and system gpio stuff)
Where would the makefile go?
This book seems good for my file creation but I lack knowledge of correct locations.
https://www.freebsd.org/doc/en/books/arch-handbook/pci.html
Next hurdle after that is where to have it included in my kernel? If used dynamically do I have to recompile kernel or just 'make' my driver and
Thanks in Advance
My device is a driver for external GPIO pins to be named sch311x_gpio for a SMSC SCH3114.
I see the following relevant spots:
/usr/src/sys/dev/sms (exists with an LAN driver >my device manufacturer SMSC=SMS)
/usr/src/sys/i386/i386/ (Gonzo's diff patch uses this directory)
/usr/src/sys/dev/gpio(seems to be spot for gpio_if.m, gpiobus.c and system gpio stuff)
Where would the makefile go?
This book seems good for my file creation but I lack knowledge of correct locations.
https://www.freebsd.org/doc/en/books/arch-handbook/pci.html
Next hurdle after that is where to have it included in my kernel? If used dynamically do I have to recompile kernel or just 'make' my driver and
kldload sch311x_gpio
?Thanks in Advance