Re: Ziatech 5503 watchdog driver

From: M. Warner Losh (imp_at_bsdimp.com)
Date: 03/20/05

  • Next message: Steve Kargl: "Re: Support for Tyan Thunder K8SR w/ Adaptec 7902 under AMD64"
    Date: Sat, 19 Mar 2005 23:02:30 -0700 (MST)
    To: dodell@offmyserver.com
    
    

    In message: <20050319080215.GX51688@smp500.sitetronics.com>
                "Devon H. O'Dell " <dodell@offmyserver.com> writes:
    : On Fri, Mar 18, 2005 at 03:55:53PM -0700, Warner Losh wrote:
    : > > I'm busy writing a Ziatech 5503 watchdog driver for FreeBSD (and
    : > > porting all the watchdog stuff to DragonFly BSD) and Plan 9. For my
    : > > driver, I have no way to identify that the system has the driver, so
    : > > I wanted to make it conditional on
    :
    : Rather, I have no way to identify that the system has the device :).
    :
    : > > options ZT5503
    : >
    : > That's not a good enough reason to make it an option, it should really
    : > be a device. Users that want it can add it to their kernel config.
    : > In fact, they'd have to add it either way, so why make it weird for
    : > them.
    : >
    : > Put this device on the ISA bus, give it an identify routine that
    : > always adds it (this isn't GENERIC safe, but since there's no way to
    : > know the device is there, you are stuck with that).
    :
    : OK. I don't know a hell of a lot about how the ISA bus works, though
    : I suppose that I remember that things using the old SB 16 cards
    : (Wolfenstein, anyone?) would simply probe various I/O ports.

    :-) Yes. Usually one does try to probe for things, but the devices
    must be cooperative.

    : Unfortunately, in my case, there are really no board specific I/O
    : registers that will give me information I can detect (or so it seems
    : from the manufacturer's manuals), though I am going to write a
    : couple of tests today to read some of these registers and see if
    : there is any useful information contained within them which I
    : might use to probe.

    Right. That's too bad, but with somehardware that's what you get.

    : Assuming no useful information exists, is it enough to let the
    : device attach regardless if the user has
    :
    : device zt5503
    :
    : in the configuration file? Maxime suggested that I use device hints
    : to gather the port and such. Where should I put these hints? NOTES?

    /boot/device.hints and also NOTES.

    : If I understand correctly, to hook this up into the build, I will
    : still have a line in files which will look something like:
    :
    : dev/ziatech/zt5503.c optional zt5503

    Yes.
     
    : Hm, Ziatech is now Performance Technologies. Should that perhaps be
    : dev/pt then instead?

    We generally don't have directories for manufacturers.

    : Thanks for the help!

    No problem.

    Warner
    _______________________________________________
    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: Steve Kargl: "Re: Support for Tyan Thunder K8SR w/ Adaptec 7902 under AMD64"

    Relevant Pages

    • Re: Simple ADS5273 -> Xilinx Interconnect Model
      ... Is the ADS5273 a non-standard LVDS "style" of driver? ... If there are excessive reflections from the ... reduced-amplitude probe point. ...
      (comp.arch.fpga)
    • Re: patch bus_add_device-losing-an-error-return-from-the-probe-metho
      ... How do you feel about the flag that I've been proposing that a driver that needs to probe for its hardware could set and that says "if we return an error the hardware's reallyreally not present and the device should not register"? ... adding a .discover method to struct device_driver that noone other than drivers for this old non generically discoverable hardware would set but which would make a registration fail if set and returning < 0? ... struct snd_card *card; ...
      (Linux-Kernel)
    • Re: Ziatech 5503 watchdog driver
      ... >> driver, I have no way to identify that the system has the driver, so ... registers that will give me information I can detect (or so it seems ... Assuming no useful information exists, is it enough to let the ... while DF has it in the dev tree. ...
      (freebsd-hackers)
    • Re: [ALSA STABLE 3/3] a few more -- unregister platform device again if probe was unsuccessf
      ... with nothing other than the driver available to probe ... bus", where the _user_ would first need to setup the hardware from userspace by echoing values into sysfs. ... With an ISA bus type, ...
      (Linux-Kernel)
    • Re: [patch/RFC 2.6.18-rc] platform_device_probe(), to conserve memory
      ... sections for typical system configurations. ... that pointers to init section code (like, ideally, probe support) must ... driver methods) when those pointers would be invalid. ...
      (Linux-Kernel)