mvs.h (220569) | mvs.h (220615) |
---|---|
1/*- 2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org> 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org> 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/mvs/mvs.h 220569 2011-04-12 16:01:27Z mav $ | 26 * $FreeBSD: head/sys/dev/mvs/mvs.h 220615 2011-04-14 07:49:45Z mav $ |
27 */ 28 29#include "mvs_if.h" 30 31/* Chip registers */ 32#define CHIP_PCIEIC 0x1900 /* PCIe Interrupt Cause */ 33#define CHIP_PCIEIM 0x1910 /* PCIe Interrupt Mask */ 34#define CHIP_PCIIC 0x1d58 /* PCI Interrupt Cause */ --- 521 unchanged lines hidden (view full) --- 556 int numdslots; /* Number of DMA slots */ 557 int numtslots; /* Number of NCQ slots */ 558 int numtslotspd[16];/* Number of NCQ slots per dev */ 559 int numhslots; /* Number of holden slots */ 560 int recoverycmd; /* Our READ LOG active */ 561 int fatalerr; /* Fatal error happend */ 562 int lastslot; /* Last used slot */ 563 int taggedtarget; /* Last tagged target */ | 27 */ 28 29#include "mvs_if.h" 30 31/* Chip registers */ 32#define CHIP_PCIEIC 0x1900 /* PCIe Interrupt Cause */ 33#define CHIP_PCIEIM 0x1910 /* PCIe Interrupt Mask */ 34#define CHIP_PCIIC 0x1d58 /* PCI Interrupt Cause */ --- 521 unchanged lines hidden (view full) --- 556 int numdslots; /* Number of DMA slots */ 557 int numtslots; /* Number of NCQ slots */ 558 int numtslotspd[16];/* Number of NCQ slots per dev */ 559 int numhslots; /* Number of holden slots */ 560 int recoverycmd; /* Our READ LOG active */ 561 int fatalerr; /* Fatal error happend */ 562 int lastslot; /* Last used slot */ 563 int taggedtarget; /* Last tagged target */ |
564 int resetting; /* Hard-reset in progress. */ 565 int resetpolldiv; /* Hard-reset poll divider. */ |
|
564 int out_idx; /* Next written CRQB */ 565 int in_idx; /* Next read CRPB */ 566 u_int transfersize; /* PIO transfer size */ 567 u_int donecount; /* PIO bytes sent/received */ 568 u_int basic_dma; /* Basic DMA used for ATAPI */ 569 u_int fake_busy; /* Fake busy bit after command submission */ 570 union ccb *frozen; /* Frozen command */ 571 struct callout pm_timer; /* Power management events */ | 566 int out_idx; /* Next written CRQB */ 567 int in_idx; /* Next read CRPB */ 568 u_int transfersize; /* PIO transfer size */ 569 u_int donecount; /* PIO bytes sent/received */ 570 u_int basic_dma; /* Basic DMA used for ATAPI */ 571 u_int fake_busy; /* Fake busy bit after command submission */ 572 union ccb *frozen; /* Frozen command */ 573 struct callout pm_timer; /* Power management events */ |
574 struct callout reset_timer; /* Hard-reset timeout */ |
|
572 573 struct mvs_device user[16]; /* User-specified settings */ 574 struct mvs_device curr[16]; /* Current settings */ 575}; 576 577/* structure describing a MVS controller */ 578struct mvs_controller { 579 device_t dev; --- 71 unchanged lines hidden --- | 575 576 struct mvs_device user[16]; /* User-specified settings */ 577 struct mvs_device curr[16]; /* Current settings */ 578}; 579 580/* structure describing a MVS controller */ 581struct mvs_controller { 582 device_t dev; --- 71 unchanged lines hidden --- |