08 Dec, 2009

1 commit


29 Nov, 2009

1 commit

  • Most of the irq_req_t typedef'd struct can be re-worked quite
    easily:

    (1) IRQInfo2 was unused in any case, so drop it.

    (2) IRQInfo1 was used write-only, so drop it.

    (3) Instance (private data to be passed to the IRQ handler):
    Most PCMCIA drivers using pcmcia_request_irq() to actually
    register an IRQ handler set the "dev_id" to the same pointer
    as the "priv" pointer in struct pcmcia_device. Modify the two
    exceptions (ipwireless, ibmtr_cs) to also work this waym and
    set the IRQ handler's "dev_id" to p_dev->priv unconditionally.

    (4) Handler is to be of type irq_handler_t.

    (5) Handler != NULL already tells whether an IRQ handler is present.
    Therefore, we do not need the IRQ_HANDLER_PRESENT flag in
    irq_req_t.Attributes.

    CC: netdev@vger.kernel.org
    CC: linux-bluetooth@vger.kernel.org
    CC: linux-ide@vger.kernel.org
    CC: linux-wireless@vger.kernel.org
    CC: linux-scsi@vger.kernel.org
    CC: alsa-devel@alsa-project.org
    CC: Jaroslav Kysela
    CC: Jiri Kosina
    CC: Karsten Keil
    for the Bluetooth parts: Acked-by: Marcel Holtmann
    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     

31 Aug, 2008

2 commits


29 Aug, 2008

1 commit

  • The header file primarily used for (in-kernel) PCMCIA device drivers
    also deserved a major cleanup. This header file also serves as the dumping
    ground for all typedefs and definitions only used by the deprecated PCMCIA
    ioctl and the deprecated PCMCIA userspace tools using this ioctl.

    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     

23 Aug, 2008

17 commits


24 Jun, 2008

2 commits


06 Feb, 2008

1 commit

  • Convert the io_req_t members to unsigned int, to allow use on machines with
    more than 16 bits worth of IO ports (i.e. secondary busses on ppc64, etc).

    There was only a couple of places in drivers where a change was needed. I
    left printk formats alone (there are lots of %04x-style formats in there),
    mostly to not change the format on the platforms that only have 16-bit io
    addresses, but also because the padding doesn't really add all that much value
    most of the time.

    I found only one sprintf of an address, and upsized the string accordingly (I
    doubt anyone will have anywhere near INT_MAX as irq value, but at least
    there's room for it now).

    Signed-off-by: Olof Johansson
    Cc: Christoph Hellwig
    Cc: Matthew Wilcox
    Cc: Alan Cox
    Cc: Dominik Brodowski
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Olof Johansson
     

31 Mar, 2006

7 commits


06 Jan, 2006

2 commits

  • Unify the EVENT_CARD_INSERTION and "attach" callbacks to one unified
    probe() callback. As all in-kernel drivers are changed to this new
    callback, there will be no temporary backwards-compatibility. Inside a
    probe() function, each driver _must_ set struct pcmcia_device
    *p_dev->instance and instance->handle correctly.

    With these patches, the basic driver interface for 16-bit PCMCIA drivers
    now has the classic four callbacks known also from other buses:

    int (*probe) (struct pcmcia_device *dev);
    void (*remove) (struct pcmcia_device *dev);

    int (*suspend) (struct pcmcia_device *dev);
    int (*resume) (struct pcmcia_device *dev);

    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     
  • Remove the old "detach" mechanism as it is unused now.

    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     

08 Jul, 2005

2 commits

  • The Linux PCMCIA code has some data that was apparently used (or meant to be
    used) to ensure that only proper client drivers are loaded. This is now
    ensured (to a certain degree) by the fact that the most client drivers are
    part of the kernel. Also, the version information has not been updated
    despite major changes in PCMCIA API. This has made it meaningless.

    This patch removes servinfo_t and pcmcia_get_card_services_info. They are not
    used in any userspace utilities such as pcmcia-cs and pcmciautils.
    drivers/pcmcia/pcmcia_ioctl.c is adjusted accordingly.

    CS_RELEASE and CS_RELEASE_CODE are removed. include/pcmcia/version.h is empty
    now. It will be removed later, but for now it's left in the tree to avoid
    touching all PCMCIA clients.

    The only driver that needs to be changed is drivers/scsi/pcmcia/nsp_cs.c,
    which uses CS_RELEASE_CODE.

    Signed-off-by: Pavel Roskin
    Signed-off-by: Dominik Brodowski
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Roskin
     
  • Reduce the occurences of "client_handle_t" which is nothing else than a
    pointer to struct pcmcia_device by now.

    Signed-off-by: Dominik Brodowski
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dominik Brodowski
     

28 Jun, 2005

2 commits


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds