ctl_private.h (da976f9d689f423211fa69e0861de90fce78e150) ctl_private.h (bfbfc4a3cbb69406ebcaa041326731048022e434)
1/*-
2 * Copyright (c) 2003, 2004, 2005, 2008 Silicon Graphics International Corp.
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

--- 83 unchanged lines hidden (view full) ---

92 char port_name[24];
93};
94
95typedef enum {
96 CTL_SER_BLOCK,
97 CTL_SER_BLOCKOPT,
98 CTL_SER_EXTENT,
99 CTL_SER_EXTENTOPT,
1/*-
2 * Copyright (c) 2003, 2004, 2005, 2008 Silicon Graphics International Corp.
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

--- 83 unchanged lines hidden (view full) ---

92 char port_name[24];
93};
94
95typedef enum {
96 CTL_SER_BLOCK,
97 CTL_SER_BLOCKOPT,
98 CTL_SER_EXTENT,
99 CTL_SER_EXTENTOPT,
100 CTL_SER_EXTENTSEQ,
100 CTL_SER_PASS,
101 CTL_SER_SKIP
102} ctl_serialize_action;
103
104typedef enum {
105 CTL_ACTION_BLOCK,
106 CTL_ACTION_OVERLAP,
107 CTL_ACTION_OVERLAP_TAG,

--- 70 unchanged lines hidden (view full) ---

178 CTL_LUN_OFFLINE = 0x080,
179 CTL_LUN_PR_RESERVED = 0x100,
180 CTL_LUN_PRIMARY_SC = 0x200,
181 CTL_LUN_SENSE_DESC = 0x400,
182 CTL_LUN_READONLY = 0x800
183} ctl_lun_flags;
184
185typedef enum {
101 CTL_SER_PASS,
102 CTL_SER_SKIP
103} ctl_serialize_action;
104
105typedef enum {
106 CTL_ACTION_BLOCK,
107 CTL_ACTION_OVERLAP,
108 CTL_ACTION_OVERLAP_TAG,

--- 70 unchanged lines hidden (view full) ---

179 CTL_LUN_OFFLINE = 0x080,
180 CTL_LUN_PR_RESERVED = 0x100,
181 CTL_LUN_PRIMARY_SC = 0x200,
182 CTL_LUN_SENSE_DESC = 0x400,
183 CTL_LUN_READONLY = 0x800
184} ctl_lun_flags;
185
186typedef enum {
187 CTL_LUN_SERSEQ_OFF,
188 CTL_LUN_SERSEQ_READ,
189 CTL_LUN_SERSEQ_ON
190} ctl_lun_serseq;
191
192typedef enum {
186 CTLBLOCK_FLAG_NONE = 0x00,
187 CTLBLOCK_FLAG_INVALID = 0x01
188} ctlblock_flags;
189
190union ctl_softcs {
191 struct ctl_softc *ctl_softc;
192 struct ctlblock_softc *ctlblock_softc;
193};

--- 187 unchanged lines hidden (view full) ---

381#define CTL_WRITE_BUFFER_SIZE 262144
382
383struct tpc_list;
384struct ctl_lun {
385 struct mtx lun_lock;
386 struct ctl_id target;
387 uint64_t lun;
388 ctl_lun_flags flags;
193 CTLBLOCK_FLAG_NONE = 0x00,
194 CTLBLOCK_FLAG_INVALID = 0x01
195} ctlblock_flags;
196
197union ctl_softcs {
198 struct ctl_softc *ctl_softc;
199 struct ctlblock_softc *ctlblock_softc;
200};

--- 187 unchanged lines hidden (view full) ---

388#define CTL_WRITE_BUFFER_SIZE 262144
389
390struct tpc_list;
391struct ctl_lun {
392 struct mtx lun_lock;
393 struct ctl_id target;
394 uint64_t lun;
395 ctl_lun_flags flags;
396 ctl_lun_serseq serseq;
389 STAILQ_HEAD(,ctl_error_desc) error_list;
390 uint64_t error_serial;
391 struct ctl_softc *ctl_softc;
392 struct ctl_be_lun *be_lun;
393 struct ctl_backend_driver *backend;
394 int io_count;
395 struct ctl_lun_delay_info delay_info;
396 int sync_interval;

--- 148 unchanged lines hidden ---
397 STAILQ_HEAD(,ctl_error_desc) error_list;
398 uint64_t error_serial;
399 struct ctl_softc *ctl_softc;
400 struct ctl_be_lun *be_lun;
401 struct ctl_backend_driver *backend;
402 int io_count;
403 struct ctl_lun_delay_info delay_info;
404 int sync_interval;

--- 148 unchanged lines hidden ---