pccardvar.h (150362) | pccardvar.h (150371) |
---|---|
1/* $NetBSD: pcmciavar.h,v 1.12 2000/02/08 12:51:31 enami Exp $ */ | 1/* $NetBSD: pcmciavar.h,v 1.12 2000/02/08 12:51:31 enami Exp $ */ |
2/* $FreeBSD: head/sys/dev/pccard/pccardvar.h 150362 2005-09-20 06:47:33Z imp $ */ | 2/* $FreeBSD: head/sys/dev/pccard/pccardvar.h 150371 2005-09-20 10:25:51Z glebius $ */ |
3 4/*- 5 * Copyright (c) 1997 Marc Horowitz. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 128 unchanged lines hidden (view full) --- 139 140#define PCCARD_SPACE_MEMORY 1 141#define PCCARD_SPACE_IO 2 142 143#define pccard_mfc(sc) \ 144 (STAILQ_FIRST(&(sc)->card.pf_head) && \ 145 STAILQ_NEXT(STAILQ_FIRST(&(sc)->card.pf_head),pf_list)) 146 | 3 4/*- 5 * Copyright (c) 1997 Marc Horowitz. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 128 unchanged lines hidden (view full) --- 139 140#define PCCARD_SPACE_MEMORY 1 141#define PCCARD_SPACE_IO 2 142 143#define pccard_mfc(sc) \ 144 (STAILQ_FIRST(&(sc)->card.pf_head) && \ 145 STAILQ_NEXT(STAILQ_FIRST(&(sc)->card.pf_head),pf_list)) 146 |
147/* compat layer */ 148static __inline int 149pccard_compat_probe(device_t dev) 150{ 151 return (CARD_COMPAT_DO_PROBE(device_get_parent(dev), dev)); 152} 153 154static __inline int 155pccard_compat_attach(device_t dev) 156{ 157 return (CARD_COMPAT_DO_ATTACH(device_get_parent(dev), dev)); 158} 159 |
|
147/* Convenience functions */ 148 149static __inline int 150pccard_cis_scan(device_t dev, pccard_scan_t fct, void *arg) 151{ 152 return (CARD_CIS_SCAN(device_get_parent(dev), dev, fct, arg)); 153} 154 --- 91 unchanged lines hidden --- | 160/* Convenience functions */ 161 162static __inline int 163pccard_cis_scan(device_t dev, pccard_scan_t fct, void *arg) 164{ 165 return (CARD_CIS_SCAN(device_get_parent(dev), dev, fct, arg)); 166} 167 --- 91 unchanged lines hidden --- |