Deleted Added
full compact
fdc.c (53372) fdc.c (54073)
1/*
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Don Ahn.
7 *
8 * Libretto PCMCIA floppy support by David Horwitt (dhorwitt@ucsd.edu)

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

42 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
43 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
44 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
45 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
46 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
47 * SUCH DAMAGE.
48 *
49 * from: @(#)fd.c 7.4 (Berkeley) 5/25/91
1/*
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Don Ahn.
7 *
8 * Libretto PCMCIA floppy support by David Horwitt (dhorwitt@ucsd.edu)

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

42 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
43 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
44 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
45 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
46 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
47 * SUCH DAMAGE.
48 *
49 * from: @(#)fd.c 7.4 (Berkeley) 5/25/91
50 * $FreeBSD: head/sys/pc98/cbus/fdc.c 53372 1999-11-18 11:34:26Z nyan $
50 * $FreeBSD: head/sys/pc98/cbus/fdc.c 54073 1999-12-03 08:41:24Z mdodd $
51 *
52 */
53
54#include "opt_fdc.h"
55
56#include <sys/param.h>
57#include <sys/systm.h>
58#include <sys/kernel.h>

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

959 int disabled, *ivar;
960 device_t child;
961
962 ivar = malloc(sizeof *ivar, M_DEVBUF /* XXX */, M_NOWAIT);
963 if (ivar == 0)
964 return;
965 if (resource_int_value(name, unit, "drive", ivar) != 0)
966 *ivar = 0;
51 *
52 */
53
54#include "opt_fdc.h"
55
56#include <sys/param.h>
57#include <sys/systm.h>
58#include <sys/kernel.h>

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

959 int disabled, *ivar;
960 device_t child;
961
962 ivar = malloc(sizeof *ivar, M_DEVBUF /* XXX */, M_NOWAIT);
963 if (ivar == 0)
964 return;
965 if (resource_int_value(name, unit, "drive", ivar) != 0)
966 *ivar = 0;
967 child = device_add_child(dev, name, unit, ivar);
967 child = device_add_child(dev, name, unit);
968 device_set_ivars(child, ivar);
968 if (child == 0)
969 return;
970 if (resource_int_value(name, unit, "disabled", &disabled) == 0
971 && disabled != 0)
972 device_disable(child);
973}
974
975static int

--- 1799 unchanged lines hidden ---
969 if (child == 0)
970 return;
971 if (resource_int_value(name, unit, "disabled", &disabled) == 0
972 && disabled != 0)
973 device_disable(child);
974}
975
976static int

--- 1799 unchanged lines hidden ---