iir_ctrl.c (200045) | iir_ctrl.c (254379) |
---|---|
1/*- 2 * Copyright (c) 2000-03 ICP vortex GmbH 3 * Copyright (c) 2002-03 Intel Corporation 4 * Copyright (c) 2003 Adaptec Inc. 5 * 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 --- 25 unchanged lines hidden (view full) --- 34 * 35 * Written by: Achim Leubner <achim_leubner@adaptec.com> 36 * Fixes/Additions: Boji Tony Kannanthanam <boji.t.kannanthanam@intel.com> 37 * 38 * $Id: iir_ctrl.c 1.3 2003/08/26 12:31:15 achim Exp $" 39 */ 40 41#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000-03 ICP vortex GmbH 3 * Copyright (c) 2002-03 Intel Corporation 4 * Copyright (c) 2003 Adaptec Inc. 5 * 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 --- 25 unchanged lines hidden (view full) --- 34 * 35 * Written by: Achim Leubner <achim_leubner@adaptec.com> 36 * Fixes/Additions: Boji Tony Kannanthanam <boji.t.kannanthanam@intel.com> 37 * 38 * $Id: iir_ctrl.c 1.3 2003/08/26 12:31:15 achim Exp $" 39 */ 40 41#include <sys/cdefs.h> |
42__FBSDID("$FreeBSD: head/sys/dev/iir/iir_ctrl.c 200045 2009-12-02 20:24:37Z marcel $"); | 42__FBSDID("$FreeBSD: head/sys/dev/iir/iir_ctrl.c 254379 2013-08-15 20:03:22Z jkim $"); |
43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/endian.h> 47#include <sys/malloc.h> 48#include <sys/kernel.h> 49#include <sys/uio.h> 50#include <sys/conf.h> --- 217 unchanged lines hidden (view full) --- 268 struct gdt_softc *gdt; 269 270 p = (gdt_ctrt_t *)cmdarg; 271 gdt = gdt_minor2softc(p->io_node); 272 if (gdt == NULL) 273 return (ENXIO); 274 /* only RP controllers */ 275 p->ext_type = 0x6000 | gdt->sc_device; | 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/endian.h> 47#include <sys/malloc.h> 48#include <sys/kernel.h> 49#include <sys/uio.h> 50#include <sys/conf.h> --- 217 unchanged lines hidden (view full) --- 268 struct gdt_softc *gdt; 269 270 p = (gdt_ctrt_t *)cmdarg; 271 gdt = gdt_minor2softc(p->io_node); 272 if (gdt == NULL) 273 return (ENXIO); 274 /* only RP controllers */ 275 p->ext_type = 0x6000 | gdt->sc_device; |
276 if (gdt->sc_vendor == INTEL_VENDOR_ID) { | 276 if (gdt->sc_vendor == INTEL_VENDOR_ID_IIR) { |
277 p->oem_id = OEM_ID_INTEL; 278 p->type = 0xfd; 279 /* new -> subdevice into ext_type */ 280 if (gdt->sc_device >= 0x600) 281 p->ext_type = 0x6000 | gdt->sc_subdevice; 282 } else { 283 p->oem_id = OEM_ID_ICP; 284 p->type = 0xfe; --- 95 unchanged lines hidden --- | 277 p->oem_id = OEM_ID_INTEL; 278 p->type = 0xfd; 279 /* new -> subdevice into ext_type */ 280 if (gdt->sc_device >= 0x600) 281 p->ext_type = 0x6000 | gdt->sc_subdevice; 282 } else { 283 p->oem_id = OEM_ID_ICP; 284 p->type = 0xfe; --- 95 unchanged lines hidden --- |