Re: Driver Development Books?

From: Joao Barros (joao.barros_at_gmail.com)
Date: 10/12/05

  • Next message: Scott Long: "Re: Driver Development Books?"
    Date: Wed, 12 Oct 2005 13:31:22 +0100
    To: Pete <TheManifestShadow@gmail.com>
    
    

    On 10/11/05, Pete <TheManifestShadow@gmail.com> wrote:
    > Hello,
    > I have what may seem to be a silly question, but I cannot find any
    > other decent resources on the web. >.< The problem that I am having
    > right now is
    > that I have a fairly nice graphics card which, for the moment is only
    > supported on Windows Operating systems, and old 2.4 Linux kernels. So
    > far there has
    > not been much positive outlook in porting the drivers to *BSD or any of
    > the 2.6 kernels that I know of, let alone 64-bit drivers for non-Win OSes.
    >
    > So I guess that makes my question fairly simple then; I know that driver
    > code is written in C (which I am learning currently) but thats about all
    > I know. I'm probably
    > not far off when I say that I need more to go on. Yet, from looking at
    > Amazon.com I have not been able to find any books on writing driver
    > code, which is really
    > frustrating.
    >
    > One of my security related books, Rootkits, tells me about how to write
    > drivers for a completely different reason so I know a bit more about how
    > they work but again
    > the code involved does not interface hardware to the OS, just injects a
    > custom application. The other tool that I will probably use is Jungo,
    > which is a nice-looking
    > application which automates a skeletal version of the driver you need,
    > but again, I would not know how to fill it out.
    >
    > Any help is appreciated.
    >
    > -Pete

    I started porting a pseudo driver from OpenBSD and had the same issues.

    You could find more info here:
    http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/index.html
    http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/newbus-api.html
    http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics-char.html#AEN8703

    And this come in very handy:
    FreeBSD Source Code Tour: http://snapshots.jp.freebsd.org/tour/
    A nice website provided by Robert Watson (Thanks!!!): http://fxr.watson.org/

    Looking at existing code is also good, like the simple led driver by phk@
    There was also a thread where John Baldwin described the parts of a
    driver but I can't seem to find it.

    --
    Joao Barros
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Scott Long: "Re: Driver Development Books?"

    Relevant Pages

    • Re: No screensaver or power down since update
      ... requested and on restart the OS told me that it had recovered from a ... from them saying that there was a problem with the video driver, ... something like "device driver stuck in thread". ... ASCII a silly question, get a silly ANSI ...
      (microsoft.public.windowsxp.general)
    • Re: AOpen FM56-EXV RS-232 phone modem driver?
      ... driver for the Aopen FM56-EXV RS232 phone modem? ... but they provide no driver. ... It's not a silly question but you don't need any driver for an RS232 ...
      (comp.os.linux.hardware)
    • Re: Driver for ACPI Uniprocessor PC?
      ... Is this the sort of driver ... that rarely evolves, or should I consider trying to find a newer one? ... ASCII a silly question, get a silly ANSI ...
      (microsoft.public.windowsxp.general)
    • Re: [PATCH] i2c driver fixes for 2.6.0
      ... This is the document I wrote about porting client ... drivers to Linux 2.6. ... +Then I converted a driver myself and updated this document. ...
      (Linux-Kernel)
    • Re: Typedef removal tool
      ... FWIW I've started porting some driver and have come across some tools, ... just replaces a specified typedef name with one the user specifies. ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)