Deleted Added
full compact
pccard.c (106914) pccard.c (109623)
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 106914 2002-11-14 14:02:32Z mux $ */
2/* $FreeBSD: head/sys/dev/pccard/pccard.c 109623 2003-01-21 08:56:16Z alfred $ */
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

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

219 * entry to use, then this method falls down. These
220 * are usually older cards. In addition, there are
221 * some cards that have multiple hardware units on the
222 * cards, but presents only one CIS chain. These cards
223 * are combination cards, but only one of these units
224 * can be on at a time.
225 */
226 ivar = malloc(sizeof(struct pccard_ivar), M_DEVBUF,
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

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

219 * entry to use, then this method falls down. These
220 * are usually older cards. In addition, there are
221 * some cards that have multiple hardware units on the
222 * cards, but presents only one CIS chain. These cards
223 * are combination cards, but only one of these units
224 * can be on at a time.
225 */
226 ivar = malloc(sizeof(struct pccard_ivar), M_DEVBUF,
227 M_WAITOK | M_ZERO);
227 M_ZERO);
228 child = device_add_child(dev, NULL, -1);
229 device_set_ivars(child, ivar);
230 ivar->fcn = pf;
231 pf->dev = child;
232 /*
233 * XXX We might want to move the next two lines into
234 * XXX the pccard interface layer. For the moment, this
235 * XXX is OK, but some drivers want to pick the config

--- 1068 unchanged lines hidden ---
228 child = device_add_child(dev, NULL, -1);
229 device_set_ivars(child, ivar);
230 ivar->fcn = pf;
231 pf->dev = child;
232 /*
233 * XXX We might want to move the next two lines into
234 * XXX the pccard interface layer. For the moment, this
235 * XXX is OK, but some drivers want to pick the config

--- 1068 unchanged lines hidden ---