Deleted Added
full compact
pccardvar.h (120289) pccardvar.h (120849)
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 120289 2003-09-20 17:46:39Z imp $ */
2/* $FreeBSD: head/sys/dev/pccard/pccardvar.h 120849 2003-10-06 07:17:20Z imp $ */
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

--- 187 unchanged lines hidden (view full) ---

198 device_t dev;
199 /* this stuff is for the socket */
200
201 /* this stuff is for the card */
202 struct pccard_card card;
203 int sc_enabled_count; /* num functions enabled */
204};
205
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

--- 187 unchanged lines hidden (view full) ---

198 device_t dev;
199 /* this stuff is for the socket */
200
201 /* this stuff is for the card */
202 struct pccard_card card;
203 int sc_enabled_count; /* num functions enabled */
204};
205
206void
207pccardbus_if_setup(struct pccard_softc*);
208
209struct pccard_cis_quirk {
210 int32_t manufacturer;
211 int32_t product;
212 char *cis1_info[4];
213 struct pccard_function *pf;
214 struct pccard_config_entry *cfe;
215};
216

--- 64 unchanged lines hidden (view full) ---

281 (((n)==1)?pccard_tuple_read_1((tuple), (idxn)) : \
282 (((n)==2)?pccard_tuple_read_2((tuple), (idxn)) : \
283 (((n)==3)?pccard_tuple_read_3((tuple), (idxn)) : \
284 /* n == 4 */ pccard_tuple_read_4((tuple), (idxn)))))
285
286#define PCCARD_SPACE_MEMORY 1
287#define PCCARD_SPACE_IO 2
288
206struct pccard_cis_quirk {
207 int32_t manufacturer;
208 int32_t product;
209 char *cis1_info[4];
210 struct pccard_function *pf;
211 struct pccard_config_entry *cfe;
212};
213

--- 64 unchanged lines hidden (view full) ---

278 (((n)==1)?pccard_tuple_read_1((tuple), (idxn)) : \
279 (((n)==2)?pccard_tuple_read_2((tuple), (idxn)) : \
280 (((n)==3)?pccard_tuple_read_3((tuple), (idxn)) : \
281 /* n == 4 */ pccard_tuple_read_4((tuple), (idxn)))))
282
283#define PCCARD_SPACE_MEMORY 1
284#define PCCARD_SPACE_IO 2
285
289#define pccard_mfc(sc) (STAILQ_FIRST(&(sc)->card.pf_head) && \
286#define pccard_mfc(sc) \
287 (STAILQ_FIRST(&(sc)->card.pf_head) && \
290 STAILQ_NEXT(STAILQ_FIRST(&(sc)->card.pf_head),pf_list))
291
292#define pccard_io_alloc(pf, start, size, align, pciop) \
293 (pccard_chip_io_alloc((pf)->sc->pct, pf->sc->pch, (start), \
294 (size), (align), (pciop)))
295
296#define pccard_io_free(pf, pciohp) \
297 (pccard_chip_io_free((pf)->sc->pct, (pf)->sc->pch, (pciohp)))

--- 87 unchanged lines hidden ---
288 STAILQ_NEXT(STAILQ_FIRST(&(sc)->card.pf_head),pf_list))
289
290#define pccard_io_alloc(pf, start, size, align, pciop) \
291 (pccard_chip_io_alloc((pf)->sc->pct, pf->sc->pch, (start), \
292 (size), (align), (pciop)))
293
294#define pccard_io_free(pf, pciohp) \
295 (pccard_chip_io_free((pf)->sc->pct, (pf)->sc->pch, (pciohp)))

--- 87 unchanged lines hidden ---