Release 4.12 drivers/ssb/bridge_pcmcia_80211.c
  
  
  
/*
 * Broadcom 43xx PCMCIA-SSB bridge module
 *
 * Copyright (c) 2007 Michael Buesch <m@bues.ch>
 *
 * Licensed under the GNU/GPL. See COPYING for details.
 */
#include <linux/ssb/ssb.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <pcmcia/cistpl.h>
#include <pcmcia/ciscode.h>
#include <pcmcia/ds.h>
#include <pcmcia/cisreg.h>
#include "ssb_private.h"
static const struct pcmcia_device_id ssb_host_pcmcia_tbl[] = {
	PCMCIA_DEVICE_MANF_CARD(0x2D0, 0x448),
	PCMCIA_DEVICE_MANF_CARD(0x2D0, 0x476),
	PCMCIA_DEVICE_NULL,
};
MODULE_DEVICE_TABLE(pcmcia, ssb_host_pcmcia_tbl);
static int ssb_host_pcmcia_probe(struct pcmcia_device *dev)
{
	struct ssb_bus *ssb;
	int err = -ENOMEM;
	int res = 0;
	ssb = kzalloc(sizeof(*ssb), GFP_KERNEL);
	if (!ssb)
		goto out_error;
	err = -ENODEV;
	dev->config_flags |= CONF_ENABLE_IRQ;
	dev->resource[2]->flags |=  WIN_ENABLE | WIN_DATA_WIDTH_16 |
			 WIN_USE_WAIT;
	dev->resource[2]->start = 0;
	dev->resource[2]->end = SSB_CORE_SIZE;
	res = pcmcia_request_window(dev, dev->resource[2], 250);
	if (res != 0)
		goto err_kfree_ssb;
	res = pcmcia_map_mem_page(dev, dev->resource[2], 0);
	if (res != 0)
		goto err_disable;
	if (!dev->irq)
		goto err_disable;
	res = pcmcia_enable_device(dev);
	if (res != 0)
		goto err_disable;
	err = ssb_bus_pcmciabus_register(ssb, dev, dev->resource[2]->start);
	if (err)
		goto err_disable;
	dev->priv = ssb;
	return 0;
err_disable:
	pcmcia_disable_device(dev);
err_kfree_ssb:
	kfree(ssb);
out_error:
	ssb_err("Initialization failed (%d, %d)\n", res, err);
	return err;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| Michael Büsch | 176 | 75.21% | 4 | 36.36% | 
| Dominik Brodowski | 53 | 22.65% | 5 | 45.45% | 
| Rafał Miłecki | 3 | 1.28% | 1 | 9.09% | 
| Magnus Damm | 2 | 0.85% | 1 | 9.09% | 
| Total | 234 | 100.00% | 11 | 100.00% | 
static void ssb_host_pcmcia_remove(struct pcmcia_device *dev)
{
	struct ssb_bus *ssb = dev->priv;
	ssb_bus_unregister(ssb);
	pcmcia_disable_device(dev);
	kfree(ssb);
	dev->priv = NULL;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| Michael Büsch | 40 | 97.56% | 1 | 50.00% | 
| Rafał Miłecki | 1 | 2.44% | 1 | 50.00% | 
| Total | 41 | 100.00% | 2 | 100.00% | 
#ifdef CONFIG_PM
static int ssb_host_pcmcia_suspend(struct pcmcia_device *dev)
{
	struct ssb_bus *ssb = dev->priv;
	return ssb_bus_suspend(ssb);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| Rafał Miłecki | 26 | 100.00% | 1 | 100.00% | 
| Total | 26 | 100.00% | 1 | 100.00% | 
static int ssb_host_pcmcia_resume(struct pcmcia_device *dev)
{
	struct ssb_bus *ssb = dev->priv;
	return ssb_bus_resume(ssb);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| Rafał Miłecki | 26 | 100.00% | 1 | 100.00% | 
| Total | 26 | 100.00% | 1 | 100.00% | 
#else /* CONFIG_PM */
# define ssb_host_pcmcia_suspend		NULL
# define ssb_host_pcmcia_resume		NULL
#endif /* CONFIG_PM */
static struct pcmcia_driver ssb_host_pcmcia_driver = {
	.owner		= THIS_MODULE,
	.name		= "ssb-pcmcia",
	.id_table	= ssb_host_pcmcia_tbl,
	.probe		= ssb_host_pcmcia_probe,
	.remove		= ssb_host_pcmcia_remove,
	.suspend	= ssb_host_pcmcia_suspend,
	.resume		= ssb_host_pcmcia_resume,
};
/*
 * These are not module init/exit functions!
 * The module_pcmcia_driver() helper cannot be used here.
 */
int ssb_host_pcmcia_init(void)
{
	return pcmcia_register_driver(&ssb_host_pcmcia_driver);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| Michael Büsch | 12 | 85.71% | 1 | 50.00% | 
| Rafał Miłecki | 2 | 14.29% | 1 | 50.00% | 
| Total | 14 | 100.00% | 2 | 100.00% | 
void ssb_host_pcmcia_exit(void)
{
	pcmcia_unregister_driver(&ssb_host_pcmcia_driver);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| Michael Büsch | 11 | 84.62% | 1 | 50.00% | 
| Rafał Miłecki | 2 | 15.38% | 1 | 50.00% | 
| Total | 13 | 100.00% | 2 | 100.00% | 
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| Michael Büsch | 311 | 66.03% | 4 | 25.00% | 
| Rafał Miłecki | 90 | 19.11% | 1 | 6.25% | 
| Dominik Brodowski | 53 | 11.25% | 5 | 31.25% | 
| Clyde McPherson | 7 | 1.49% | 1 | 6.25% | 
| Tejun Heo | 3 | 0.64% | 1 | 6.25% | 
| Paul Gortmaker | 3 | 0.64% | 1 | 6.25% | 
| Magnus Damm | 2 | 0.42% | 1 | 6.25% | 
| Joe Perches | 1 | 0.21% | 1 | 6.25% | 
| H Hartley Sweeten | 1 | 0.21% | 1 | 6.25% | 
| Total | 471 | 100.00% | 16 | 100.00% | 
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.