Deleted Added
full compact
pccard.c (90187) pccard.c (90436)
1/* $NetBSD: pcmcia.c,v 1.23 2000/07/28 19:17:02 drochner Exp $ */
1/* $NetBSD: pcmcia.c,v 1.23 2000/07/28 19:17:02 drochner Exp $ */
2/* $FreeBSD: head/sys/dev/pccard/pccard.c 90187 2002-02-04 15:55:21Z imp $ */
2/* $FreeBSD: head/sys/dev/pccard/pccard.c 90436 2002-02-09 21:34:06Z 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

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

61#define DEVPRVERBOSE(arg) device_printf arg
62#else
63#define DPRINTF(arg)
64#define DEVPRINTF(arg)
65#define PRVERBOSE(arg) if (bootverbose) printf arg
66#define DEVPRVERBOSE(arg) if (bootverbose) device_printf arg
67#endif
68
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

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

61#define DEVPRVERBOSE(arg) device_printf arg
62#else
63#define DPRINTF(arg)
64#define DEVPRINTF(arg)
65#define PRVERBOSE(arg) if (bootverbose) printf arg
66#define DEVPRVERBOSE(arg) if (bootverbose) device_printf arg
67#endif
68
69#ifdef PCCARDVERBOSE
70int pccard_verbose = 1;
71#else
72int pccard_verbose = 0;
73#endif
74
75static int pccard_ccr_read(struct pccard_function *pf, int ccr);
76static void pccard_ccr_write(struct pccard_function *pf, int ccr, int val);
77static int pccard_attach_card(device_t dev);
78static int pccard_detach_card(device_t dev, int flags);
79static int pccard_card_gettype(device_t dev, int *type);
80static void pccard_function_init(struct pccard_function *pf);
81static void pccard_function_free(struct pccard_function *pf);
82static int pccard_function_enable(struct pccard_function *pf);

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

163 device_printf (dev, "CARD ERROR!\n");
164 return (1);
165 }
166 if (STAILQ_EMPTY(&sc->card.pf_head)) {
167 device_printf (dev, "Card has no functions!\n");
168 return (1);
169 }
170
69static int pccard_ccr_read(struct pccard_function *pf, int ccr);
70static void pccard_ccr_write(struct pccard_function *pf, int ccr, int val);
71static int pccard_attach_card(device_t dev);
72static int pccard_detach_card(device_t dev, int flags);
73static int pccard_card_gettype(device_t dev, int *type);
74static void pccard_function_init(struct pccard_function *pf);
75static void pccard_function_free(struct pccard_function *pf);
76static int pccard_function_enable(struct pccard_function *pf);

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

157 device_printf (dev, "CARD ERROR!\n");
158 return (1);
159 }
160 if (STAILQ_EMPTY(&sc->card.pf_head)) {
161 device_printf (dev, "Card has no functions!\n");
162 return (1);
163 }
164
171 if (1)
165 if (bootverbose || pccard_debug)
172 pccard_print_cis(dev);
173
174 DEVPRINTF((dev, "functions scanning\n"));
175 STAILQ_FOREACH(pf, &sc->card.pf_head, pf_list) {
176 if (STAILQ_EMPTY(&pf->cfe_head))
177 continue;
178
179 pf->sc = sc;

--- 1081 unchanged lines hidden ---
166 pccard_print_cis(dev);
167
168 DEVPRINTF((dev, "functions scanning\n"));
169 STAILQ_FOREACH(pf, &sc->card.pf_head, pf_list) {
170 if (STAILQ_EMPTY(&pf->cfe_head))
171 continue;
172
173 pf->sc = sc;

--- 1081 unchanged lines hidden ---