Re: Writing a driver for a card reader controller - how?

From: M. Warner Losh (imp_at_bsdimp.com)
Date: 11/25/05

  • Next message: Cristiano Deana: "Re: ZyXEL usb wifi"
    Date: Thu, 24 Nov 2005 17:15:18 -0700 (MST)
    To: listmember@thiemo.net
    
    

    In message: <20051124202519.GA84564@mygiea.ham01.thiemo.net>
                Thiemo Nordenholz <listmember@thiemo.net> writes:
    : > how to setup the base address for each of the sets of registers
    : > without actually talking about the sets of registers themselves. Nor
    : > can I find in the document a pointer to the different register sets.
    : > Do you have one of those as well? It looks fairly easy to program
    :
    : As far as I have understood what I have seen so far, this chip will just
    : handle the communication between "the computer" and the SD/MMC (both seem to
    : be very similar to access, unfortunately the SD standard is not publicly
    : available) card.

    I understand that. However, there are 8 bytes that are consumed by
    the device. Even if it was just one byte, what are the bit patterns
    in it? Given that it has a DRQ associated with it, one would need to
    setup addresses and such for DMA. The SD/MMC cards are a serial
    interface where you give it commands and things happen. There are
    variations on this theme (SD has a nibble mode, while MMC doesn't).

    The SD standard is available publicly, it is just really expensive and
    comes with significant NDA requirements. The MMC standard is also
    available for a more modest $500 or so (still a little too pricy for
    me to buy on my own) and has much less restricive license
    restrictions. There's reduced versions of both standards available,
    but they are useless to actually program device with. They tell you
    the basics, but not enough to do anything useful.

    : I think once this controller has been programmed to use IRQ, DRQ and
    : register base address, what one wants to access are those resources in the
    : card itself, which can happen through those resources.

    Yes. things will happen through those resources, but without knowing
    the layout of the registers, it would be impossible to actually use
    them.

    : My plan therefore was to first be able to make those settings and then
    : talk to the card as defined in the MMC standard... Finding out if a card is
    : in the slot, though, should work first as that's done by the controller.

    Do you have a copy of the MMC standard? Does the MMC standard
    actually define a standard host interface?

    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: Cristiano Deana: "Re: ZyXEL usb wifi"

    Relevant Pages

    • Re: Writing a driver for a card reader controller - how?
      ... :> Do you have a copy of the MMC standard? ... :> Does the MMC standard actually define a standard host interface? ... There's two sets of registers that I've been able to find. ... with the card. ...
      (freebsd-hackers)
    • How to set NIC to 100BaseT
      ... I have this 3Com card which is a 10/100baseT, ... The Vortex chip may be active, so FIFO registers will not be read. ... Cyclone format checksum is correct. ...
      (comp.os.linux.networking)
    • Re: character driver over PCI
      ... the registers of this card and pass this register details to the user ... application.Since i will not connect to the network at this stage i ... I inserted the PCI module using insmod..That called PCI ...
      (Linux-Kernel)
    • Re: CT60 / CTPCI / Radeon
      ... >actual VGA compatibility, but at least a way to set modes you can draw in. ... To get TOS up to the auto folder, the card must be able to ... BIOS does) may require access to undocumented registers to set up DRAM ... lead to a working configuration without some additional tweaking. ...
      (comp.sys.atari.st)
    • Re: RfD - Enhanced local variable syntax (long)
      ... driving the standard is a bit like the tail wagging the dog. ... As other implementations implement locals in memory, ... be implemented in registers is going too far if it means a useful bit ...
      (comp.lang.forth)