asr.c (234503) | asr.c (254263) |
---|---|
1/*- 2 * Copyright (c) 1996-2000 Distributed Processing Technology Corporation 3 * Copyright (c) 2000-2001 Adaptec Corporation 4 * All rights reserved. 5 * 6 * TERMS AND CONDITIONS OF USE 7 * 8 * Redistribution and use in source form, with or without modification, are --- 146 unchanged lines hidden (view full) --- 155#include <dev/asr/dptalign.h> 156#include <dev/asr/i2oexec.h> 157#include <dev/asr/i2obscsi.h> 158#include <dev/asr/i2odpt.h> 159#include <dev/asr/i2oadptr.h> 160 161#include <dev/asr/sys_info.h> 162 | 1/*- 2 * Copyright (c) 1996-2000 Distributed Processing Technology Corporation 3 * Copyright (c) 2000-2001 Adaptec Corporation 4 * All rights reserved. 5 * 6 * TERMS AND CONDITIONS OF USE 7 * 8 * Redistribution and use in source form, with or without modification, are --- 146 unchanged lines hidden (view full) --- 155#include <dev/asr/dptalign.h> 156#include <dev/asr/i2oexec.h> 157#include <dev/asr/i2obscsi.h> 158#include <dev/asr/i2odpt.h> 159#include <dev/asr/i2oadptr.h> 160 161#include <dev/asr/sys_info.h> 162 |
163__FBSDID("$FreeBSD: head/sys/dev/asr/asr.c 234503 2012-04-20 21:17:33Z dim $"); | 163__FBSDID("$FreeBSD: head/sys/dev/asr/asr.c 254263 2013-08-12 23:30:01Z scottl $"); |
164 165#define ASR_VERSION 1 166#define ASR_REVISION '1' 167#define ASR_SUBREVISION '0' 168#define ASR_MONTH 5 169#define ASR_DAY 5 170#define ASR_YEAR (2004 - 1980) 171 --- 2251 unchanged lines hidden (view full) --- 2423 /* 2424 * This is the real McCoy! 2425 */ 2426 if (!asr_pci_map_mem(dev, sc)) { 2427 device_printf(dev, "could not map memory\n"); 2428 return(ENXIO); 2429 } 2430 /* Enable if not formerly enabled */ | 164 165#define ASR_VERSION 1 166#define ASR_REVISION '1' 167#define ASR_SUBREVISION '0' 168#define ASR_MONTH 5 169#define ASR_DAY 5 170#define ASR_YEAR (2004 - 1980) 171 --- 2251 unchanged lines hidden (view full) --- 2423 /* 2424 * This is the real McCoy! 2425 */ 2426 if (!asr_pci_map_mem(dev, sc)) { 2427 device_printf(dev, "could not map memory\n"); 2428 return(ENXIO); 2429 } 2430 /* Enable if not formerly enabled */ |
2431 pci_write_config(dev, PCIR_COMMAND, 2432 pci_read_config(dev, PCIR_COMMAND, sizeof(char)) | 2433 PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN, sizeof(char)); | 2431 pci_enable_busmaster(dev); |
2434 2435 sc->ha_pciBusNum = pci_get_bus(dev); 2436 sc->ha_pciDeviceNum = (pci_get_slot(dev) << 3) | pci_get_function(dev); 2437 2438 if ((error = asr_alloc_dma(sc)) != 0) 2439 return (error); 2440 2441 /* Check if the device is there? */ --- 1397 unchanged lines hidden --- | 2432 2433 sc->ha_pciBusNum = pci_get_bus(dev); 2434 sc->ha_pciDeviceNum = (pci_get_slot(dev) << 3) | pci_get_function(dev); 2435 2436 if ((error = asr_alloc_dma(sc)) != 0) 2437 return (error); 2438 2439 /* Check if the device is there? */ --- 1397 unchanged lines hidden --- |