aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pcic
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2000-10-18 02:22:39 +0000
committerWarner Losh <imp@FreeBSD.org>2000-10-18 02:22:39 +0000
commite8f9f4ecd441a336f5765c5e8867ebc6557efe79 (patch)
tree9cc55c889bf6b86a5c3c8159a083140d8e3e359e /sys/dev/pcic
parentcc8e7d425000d9d2f24bde623a5f6ddc50759b32 (diff)
downloadsrc-e8f9f4ecd441a336f5765c5e8867ebc6557efe79.tar.gz
src-e8f9f4ecd441a336f5765c5e8867ebc6557efe79.zip
Remove some silly debug writes and code that we don't need
Notes
Notes: svn path=/head/; revision=67270
Diffstat (limited to 'sys/dev/pcic')
-rw-r--r--sys/dev/pcic/i82365.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/sys/dev/pcic/i82365.c b/sys/dev/pcic/i82365.c
index 59df77afbe9c..bee17c858b19 100644
--- a/sys/dev/pcic/i82365.c
+++ b/sys/dev/pcic/i82365.c
@@ -631,8 +631,6 @@ pcic_intr(void *arg)
struct pcic_softc *sc = arg;
int i;
- DEVPRINTF((sc->dev, "intr\n"));
-
for (i = 0; i < PCIC_NSLOTS; i++)
if (sc->handle[i].flags & PCIC_FLAG_SOCKETP)
pcic_intr_socket(&sc->handle[i]);
@@ -710,9 +708,7 @@ pcic_queue_event(struct pcic_handle *h, int event)
static void
pcic_attach_card(struct pcic_handle *h)
{
- DPRINTF(("pcic_attach_card h %p h->dev %p\n", h, h->dev));
if (!(h->flags & PCIC_FLAG_CARDP)) {
- DPRINTF(("Calling MI attach function\n"));
/* call the MI attach function */
CARD_ATTACH_CARD(h->dev);
h->flags |= PCIC_FLAG_CARDP;
@@ -724,10 +720,8 @@ pcic_attach_card(struct pcic_handle *h)
static void
pcic_detach_card(struct pcic_handle *h, int flags)
{
- DPRINTF(("pcic_detach_card h %p h->dev %p\n", h, h->dev));
if (h->flags & PCIC_FLAG_CARDP) {
h->flags &= ~PCIC_FLAG_CARDP;
-
/* call the MI detach function */
CARD_DETACH_CARD(h->dev, flags);
} else {
@@ -1096,21 +1090,9 @@ pcic_chip_io_map(struct pcic_handle *h, int width, bus_addr_t offset,
*windowp = win;
-#if 0
- /* XXX this is pretty gross */
- if (sc->iot != pcihp->iot)
- panic("pcic_chip_io_map iot is bogus");
-#endif
-
DPRINTF(("pcic_chip_io_map window %d %s port %lx+%lx\n",
win, width_names[width], (u_long) ioaddr, (u_long) size));
- /* XXX wtf is this doing here? */
-
- printf(" port 0x%lx", (u_long) ioaddr);
- if (size > 1)
- printf("-0x%lx", (u_long) ioaddr + (u_long) size - 1);
-
h->io[win].addr = ioaddr;
h->io[win].size = size;
h->io[win].width = width;
@@ -1262,7 +1244,6 @@ int
pcic_disable_socket(device_t dev, device_t child)
{
struct pcic_handle *h = pcic_get_handle(dev, child);
- DPRINTF(("pcic_chip_socket_disable\n"));
/* power down the socket */
@@ -1486,7 +1467,6 @@ pcic_set_res_flags(device_t dev, device_t child, int type, int rid,
{
struct pcic_handle *h = pcic_get_handle(dev, child);
- DPRINTF(("%p %p %d %d %#x\n", dev, child, type, rid, flags));
if (type != SYS_RES_MEMORY)
return (EINVAL);
h->mem[rid].kind = PCCARD_MEM_ATTR;