if_an_pci.c (117126) | if_an_pci.c (119156) |
---|---|
1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 37 unchanged lines hidden (view full) --- 46 * is the local bus mapping register for bus space 0. There are also 47 * registers for additional register spaces at registers 0x1C and 48 * 0x20, but these are unused in the Aironet devices. To find out 49 * more, you need a datasheet for the 9050 from PLX, but you have 50 * to go through their sales office to get it. Bleh. 51 */ 52 53#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 37 unchanged lines hidden (view full) --- 46 * is the local bus mapping register for bus space 0. There are also 47 * registers for additional register spaces at registers 0x1C and 48 * 0x20, but these are unused in the Aironet devices. To find out 49 * more, you need a datasheet for the 9050 from PLX, but you have 50 * to go through their sales office to get it. Bleh. 51 */ 52 53#include <sys/cdefs.h> |
54__FBSDID("$FreeBSD: head/sys/dev/an/if_an_pci.c 117126 2003-07-01 15:52:06Z scottl $"); | 54__FBSDID("$FreeBSD: head/sys/dev/an/if_an_pci.c 119156 2003-08-20 03:46:05Z ambrisko $"); |
55 56#include "opt_inet.h" 57 58#ifdef INET 59#define ANCACHE 60#endif 61 62#include <sys/param.h> --- 130 unchanged lines hidden (view full) --- 193 goto fail; 194 } 195 sc->an_mem_btag = rman_get_bustag(sc->mem_res); 196 sc->an_mem_bhandle = rman_get_bushandle(sc->mem_res); 197 198 /* Allocate aux. memory */ 199 sc->mem_aux_rid = PCIR_MAPS + 8; 200 error = an_alloc_aux_memory(dev, sc->mem_aux_rid, | 55 56#include "opt_inet.h" 57 58#ifdef INET 59#define ANCACHE 60#endif 61 62#include <sys/param.h> --- 130 unchanged lines hidden (view full) --- 193 goto fail; 194 } 195 sc->an_mem_btag = rman_get_bustag(sc->mem_res); 196 sc->an_mem_bhandle = rman_get_bushandle(sc->mem_res); 197 198 /* Allocate aux. memory */ 199 sc->mem_aux_rid = PCIR_MAPS + 8; 200 error = an_alloc_aux_memory(dev, sc->mem_aux_rid, |
201 AN_AUXMEMSIZE); | 201 AN_AUX_MEM_SIZE); |
202 if (error) { 203 printf("an%d: couldn't map aux memory\n", unit); 204 goto fail; 205 } 206 sc->an_mem_aux_btag = rman_get_bustag(sc->mem_aux_res); 207 sc->an_mem_aux_bhandle = rman_get_bushandle(sc->mem_aux_res); 208 209 /* Allocate DMA region */ --- 95 unchanged lines hidden --- | 202 if (error) { 203 printf("an%d: couldn't map aux memory\n", unit); 204 goto fail; 205 } 206 sc->an_mem_aux_btag = rman_get_bustag(sc->mem_aux_res); 207 sc->an_mem_aux_bhandle = rman_get_bushandle(sc->mem_aux_res); 208 209 /* Allocate DMA region */ --- 95 unchanged lines hidden --- |