Release 4.7 drivers/ide/rapide.c
/*
* Copyright (c) 1996-2002 Russell King.
*/
#include <linux/module.h>
#include <linux/blkdev.h>
#include <linux/errno.h>
#include <linux/ide.h>
#include <linux/init.h>
#include <asm/ecard.h>
static const struct ide_port_info rapide_port_info = {
.host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_NO_DMA,
.chipset = ide_generic,
};
static void rapide_setup_ports(struct ide_hw *hw, void __iomem *base,
void __iomem *ctrl, unsigned int sz, int irq)
{
unsigned long port = (unsigned long)base;
int i;
for (i = 0; i <= 7; i++) {
hw->io_ports_array[i] = port;
port += sz;
}
hw->io_ports.ctl_addr = (unsigned long)ctrl;
hw->irq = irq;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
russell king | russell king | 40 | 45.98% | 2 | 28.57% |
jens axboe | jens axboe | 30 | 34.48% | 1 | 14.29% |
bartlomiej zolnierkiewicz | bartlomiej zolnierkiewicz | 15 | 17.24% | 3 | 42.86% |
alan cox | alan cox | 2 | 2.30% | 1 | 14.29% |
| Total | 87 | 100.00% | 7 | 100.00% |
static int rapide_probe(struct expansion_card *ec, const struct ecard_id *id)
{
void __iomem *base;
struct ide_host *host;
int ret;
struct ide_hw hw, *hws[] = { &hw };
ret = ecard_request_resources(ec);
if (ret)
goto out;
base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0);
if (!base) {
ret = -ENOMEM;
goto release;
}
memset(&hw, 0, sizeof(hw));
rapide_setup_ports(&hw, base, base + 0x818, 1 << 6, ec->irq);
hw.dev = &ec->dev;
ret = ide_host_add(&rapide_port_info, hws, 1, &host);
if (ret)
goto release;
ecard_set_drvdata(ec, host);
goto out;
release:
ecard_release_resources(ec);
out:
return ret;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
russell king | russell king | 92 | 53.80% | 2 | 18.18% |
bartlomiej zolnierkiewicz | bartlomiej zolnierkiewicz | 62 | 36.26% | 7 | 63.64% |
jens axboe | jens axboe | 11 | 6.43% | 1 | 9.09% |
alan cox | alan cox | 6 | 3.51% | 1 | 9.09% |
| Total | 171 | 100.00% | 11 | 100.00% |
static void rapide_remove(struct expansion_card *ec)
{
struct ide_host *host = ecard_get_drvdata(ec);
ecard_set_drvdata(ec, NULL);
ide_host_remove(host);
ecard_release_resources(ec);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
russell king | russell king | 22 | 57.89% | 1 | 25.00% |
alan cox | alan cox | 8 | 21.05% | 1 | 25.00% |
bartlomiej zolnierkiewicz | bartlomiej zolnierkiewicz | 5 | 13.16% | 1 | 25.00% |
jens axboe | jens axboe | 3 | 7.89% | 1 | 25.00% |
| Total | 38 | 100.00% | 4 | 100.00% |
static struct ecard_id rapide_ids[] = {
{ MANU_YELLOWSTONE, PROD_YELLOWSTONE_RAPIDE32 },
{ 0xffff, 0xffff }
};
static struct ecard_driver rapide_driver = {
.probe = rapide_probe,
.remove = rapide_remove,
.id_table = rapide_ids,
.drv = {
.name = "rapide",
},
};
static int __init rapide_init(void)
{
return ecard_register_driver(&rapide_driver);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
jens axboe | jens axboe | 8 | 50.00% | 1 | 50.00% |
alan cox | alan cox | 8 | 50.00% | 1 | 50.00% |
| Total | 16 | 100.00% | 2 | 100.00% |
static void __exit rapide_exit(void)
{
ecard_remove_driver(&rapide_driver);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
bartlomiej zolnierkiewicz | bartlomiej zolnierkiewicz | 14 | 93.33% | 1 | 50.00% |
al viro | al viro | 1 | 6.67% | 1 | 50.00% |
| Total | 15 | 100.00% | 2 | 100.00% |
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Yellowstone RAPIDE driver");
module_init(rapide_init);
module_exit(rapide_exit);
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
russell king | russell king | 154 | 35.16% | 3 | 16.67% |
bartlomiej zolnierkiewicz | bartlomiej zolnierkiewicz | 121 | 27.63% | 12 | 66.67% |
alan cox | alan cox | 83 | 18.95% | 1 | 5.56% |
jens axboe | jens axboe | 78 | 17.81% | 1 | 5.56% |
al viro | al viro | 2 | 0.46% | 1 | 5.56% |
greg kroah-hartman | greg kroah-hartman | | 0.00% | 0 | 0.00% |
| Total | 438 | 100.00% | 18 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.