Deleted Added
sdiff udiff text old ( 90964 ) new ( 91786 )
full compact
1/* $NetBSD: pcmcia.c,v 1.23 2000/07/28 19:17:02 drochner Exp $ */
2/* $FreeBSD: head/sys/dev/pccard/pccard.c 91786 2002-03-07 08:03:53Z 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

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

31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/malloc.h>
36#include <sys/module.h>
37#include <sys/kernel.h>
38#include <sys/queue.h>
39#include <sys/sysctl.h>
40#include <sys/types.h>
41
42#include <sys/bus.h>
43#include <machine/bus.h>
44#include <sys/rman.h>
45#include <machine/resource.h>
46
47#include <net/ethernet.h>
48
49#include <dev/pccard/pccardreg.h>
50#include <dev/pccard/pccardvar.h>
51
52#include "power_if.h"
53#include "card_if.h"
54
55#define PCCARDDEBUG
56
57/* sysctl vars */
58SYSCTL_NODE(_hw, OID_AUTO, pccard, CTLFLAG_RD, 0, "PCCARD parameters");
59
60int pccard_debug = 0;
61TUNABLE_INT("hw.pccard.debug", &pccard_debug);
62SYSCTL_INT(_hw_pccard, OID_AUTO, debug, CTLFLAG_RW,
63 &pccard_debug, 0,
64 "pccard debug");
65
66int pccard_cis_debug = 0;
67TUNABLE_INT("hw.pccard.cis_debug", &pccard_cis_debug);
68SYSCTL_INT(_hw_pccard, OID_AUTO, cis_debug, CTLFLAG_RW,
69 &pccard_cis_debug, 0, "pccard CIS debug");
70
71#ifdef PCCARDDEBUG
72#define DPRINTF(arg) if (pccard_debug) printf arg
73#define DEVPRINTF(arg) if (pccard_debug) device_printf arg
74#define PRVERBOSE(arg) printf arg
75#define DEVPRVERBOSE(arg) device_printf arg
76#else
77#define DPRINTF(arg)
78#define DEVPRINTF(arg)
79#define PRVERBOSE(arg) if (bootverbose) printf arg

--- 1196 unchanged lines hidden ---