1/* $NetBSD: pcmcia.c,v 1.23 2000/07/28 19:17:02 drochner Exp $ */ |
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 |
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 |
165 if (bootverbose || pccard_debug) |
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 --- |