Release 4.7 include/linux/isapnp.h
/*
* ISA Plug & Play support
* Copyright (c) by Jaroslav Kysela <perex@suse.cz>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#ifndef LINUX_ISAPNP_H
#define LINUX_ISAPNP_H
#include <linux/errno.h>
#include <linux/pnp.h>
/*
*
*/
#define ISAPNP_VENDOR(a,b,c) (((((a)-'A'+1)&0x3f)<<2)|\
((((b)-'A'+1)&0x18)>>3)|((((b)-'A'+1)&7)<<13)|\
((((c)-'A'+1)&0x1f)<<8))
#define ISAPNP_DEVICE(x) ((((x)&0xf000)>>8)|\
(((x)&0x0f00)>>8)|\
(((x)&0x00f0)<<8)|\
(((x)&0x000f)<<8))
#define ISAPNP_FUNCTION(x) ISAPNP_DEVICE(x)
/*
*
*/
#ifdef __KERNEL__
#include <linux/mod_devicetable.h>
#define DEVICE_COUNT_COMPATIBLE 4
#define ISAPNP_CARD_DEVS 8
#define ISAPNP_CARD_ID(_va, _vb, _vc, _device) \
.card_vendor = ISAPNP_VENDOR(_va, _vb, _vc), .card_device = ISAPNP_DEVICE(_device)
#define ISAPNP_CARD_END \
.card_vendor = 0, .card_device = 0
#define ISAPNP_DEVICE_ID(_va, _vb, _vc, _function) \
{ .vendor = ISAPNP_VENDOR(_va, _vb, _vc), .function = ISAPNP_FUNCTION(_function) }
struct isapnp_card_id {
unsigned long driver_data; /* data private to the driver */
unsigned short card_vendor, card_device;
struct {
unsigned short vendor, function;
}
devs[ISAPNP_CARD_DEVS]; /* logical devices */
};
#define ISAPNP_DEVICE_SINGLE(_cva, _cvb, _cvc, _cdevice, _dva, _dvb, _dvc, _dfunction) \
.card_vendor = ISAPNP_VENDOR(_cva, _cvb, _cvc), .card_device = ISAPNP_DEVICE(_cdevice), \
.vendor = ISAPNP_VENDOR(_dva, _dvb, _dvc), .function = ISAPNP_FUNCTION(_dfunction)
#define ISAPNP_DEVICE_SINGLE_END \
.card_vendor = 0, .card_device = 0
#if defined(CONFIG_ISAPNP) || (defined(CONFIG_ISAPNP_MODULE) && defined(MODULE))
#define __ISAPNP__
/* lowlevel configuration */
int isapnp_present(void);
int isapnp_cfg_begin(int csn, int device);
int isapnp_cfg_end(void);
unsigned char isapnp_read_byte(unsigned char idx);
void isapnp_write_byte(unsigned char idx, unsigned char val);
#ifdef CONFIG_PROC_FS
int isapnp_proc_init(void);
int isapnp_proc_done(void);
#else
static inline int isapnp_proc_init(void) { return 0; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
adam belay | adam belay | 8 | 66.67% | 1 | 50.00% |
jaroslav kysela | jaroslav kysela | 4 | 33.33% | 1 | 50.00% |
| Total | 12 | 100.00% | 2 | 100.00% |
static inline int isapnp_proc_done(void) { return 0; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
adam belay | adam belay | 7 | 58.33% | 1 | 33.33% |
jaroslav kysela | jaroslav kysela | 4 | 33.33% | 1 | 33.33% |
arnaldo carvalho de melo | arnaldo carvalho de melo | 1 | 8.33% | 1 | 33.33% |
| Total | 12 | 100.00% | 3 | 100.00% |
#endif
/* compat */
struct pnp_card *pnp_find_card(unsigned short vendor,
unsigned short device,
struct pnp_card *from);
struct pnp_dev *pnp_find_dev(struct pnp_card *card,
unsigned short vendor,
unsigned short function,
struct pnp_dev *from);
#else /* !CONFIG_ISAPNP */
/* lowlevel configuration */
static inline int isapnp_present(void) { return 0; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 8 | 66.67% | 1 | 33.33% |
adam belay | adam belay | 2 | 16.67% | 1 | 33.33% |
jaroslav kysela | jaroslav kysela | 2 | 16.67% | 1 | 33.33% |
| Total | 12 | 100.00% | 3 | 100.00% |
static inline int isapnp_cfg_begin(int csn, int device) { return -ENODEV; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 16 | 94.12% | 1 | 50.00% |
linus torvalds | linus torvalds | 1 | 5.88% | 1 | 50.00% |
| Total | 17 | 100.00% | 2 | 100.00% |
static inline int isapnp_cfg_end(void) { return -ENODEV; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 12 | 92.31% | 1 | 50.00% |
linus torvalds | linus torvalds | 1 | 7.69% | 1 | 50.00% |
| Total | 13 | 100.00% | 2 | 100.00% |
static inline unsigned char isapnp_read_byte(unsigned char idx) { return 0xff; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 14 | 93.33% | 1 | 50.00% |
linus torvalds | linus torvalds | 1 | 6.67% | 1 | 50.00% |
| Total | 15 | 100.00% | 2 | 100.00% |
static inline void isapnp_write_byte(unsigned char idx, unsigned char val) { ; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 15 | 93.75% | 1 | 50.00% |
linus torvalds | linus torvalds | 1 | 6.25% | 1 | 50.00% |
| Total | 16 | 100.00% | 2 | 100.00% |
static inline struct pnp_card *pnp_find_card(unsigned short vendor,
unsigned short device,
struct pnp_card *from) { return NULL; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
jaroslav kysela | jaroslav kysela | 25 | 100.00% | 1 | 100.00% |
| Total | 25 | 100.00% | 1 | 100.00% |
static inline struct pnp_dev *pnp_find_dev(struct pnp_card *card,
unsigned short vendor,
unsigned short function,
struct pnp_dev *from) { return NULL; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
jaroslav kysela | jaroslav kysela | 30 | 100.00% | 1 | 100.00% |
| Total | 30 | 100.00% | 1 | 100.00% |
#endif /* CONFIG_ISAPNP */
#endif /* __KERNEL__ */
#endif /* LINUX_ISAPNP_H */
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 283 | 64.61% | 8 | 50.00% |
jaroslav kysela | jaroslav kysela | 118 | 26.94% | 3 | 18.75% |
adam belay | adam belay | 24 | 5.48% | 1 | 6.25% |
art haas | art haas | 5 | 1.14% | 1 | 6.25% |
linus torvalds | linus torvalds | 4 | 0.91% | 1 | 6.25% |
rusty russell | rusty russell | 3 | 0.68% | 1 | 6.25% |
arnaldo carvalho de melo | arnaldo carvalho de melo | 1 | 0.23% | 1 | 6.25% |
| Total | 438 | 100.00% | 16 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.