Deleted Added
full compact
ldm.h (228940) ldm.h (284730)
1/*-
1/*-
2 * Copyright (c) 2011 HighPoint Technologies, Inc.
2 * Copyright (c) 2005-2011 HighPoint Technologies, Inc.
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 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
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 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/hpt27xx/ldm.h 228940 2011-12-28 23:26:58Z delphij $
26 * $FreeBSD: head/sys/dev/hpt27xx/ldm.h 284730 2015-06-23 17:26:16Z delphij $
27 */
28
29#include <dev/hpt27xx/hpt27xx_config.h>
30
31#ifndef _HPT_LDM_H_
32#define _HPT_LDM_H_
33
34#define VERMAGIC_LDM 75

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

239{
240#ifdef SUPPORT_ARRAY
241 PRAW_PARTITION raw_part_list;
242 __HPT_RAW_LBA max_available_capacity;
243 __HPT_RAW_LBA total_available_capacity;
244#endif
245 __HPT_RAW_LBA real_capacity;
246 __HPT_RAW_LBA head_position;
27 */
28
29#include <dev/hpt27xx/hpt27xx_config.h>
30
31#ifndef _HPT_LDM_H_
32#define _HPT_LDM_H_
33
34#define VERMAGIC_LDM 75

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

239{
240#ifdef SUPPORT_ARRAY
241 PRAW_PARTITION raw_part_list;
242 __HPT_RAW_LBA max_available_capacity;
243 __HPT_RAW_LBA total_available_capacity;
244#endif
245 __HPT_RAW_LBA real_capacity;
246 __HPT_RAW_LBA head_position;
247 HPT_U32 logical_sector_size;
247
248 HPT_U16 max_sectors_per_cmd;
249 HPT_U8 max_queue_depth;
250 HPT_U8 user_select_mode;
251
252 HPT_UINT uninitialized : 1;
253 HPT_UINT legacy_disk : 1;
254 HPT_UINT is_spare : 1;

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

262 HPT_UINT enable_read_ahead : 1;
263 HPT_UINT df_write_cache_set: 1;
264 HPT_UINT enable_write_cache : 1;
265 HPT_UINT df_tcq_set: 1;
266 HPT_UINT enable_tcq : 1;
267 HPT_UINT df_ncq_set: 1;
268 HPT_UINT enable_ncq : 1;
269
248
249 HPT_U16 max_sectors_per_cmd;
250 HPT_U8 max_queue_depth;
251 HPT_U8 user_select_mode;
252
253 HPT_UINT uninitialized : 1;
254 HPT_UINT legacy_disk : 1;
255 HPT_UINT is_spare : 1;

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

263 HPT_UINT enable_read_ahead : 1;
264 HPT_UINT df_write_cache_set: 1;
265 HPT_UINT enable_write_cache : 1;
266 HPT_UINT df_tcq_set: 1;
267 HPT_UINT enable_tcq : 1;
268 HPT_UINT df_ncq_set: 1;
269 HPT_UINT enable_ncq : 1;
270
271 HPT_UINT bad_sector : 1;
272 HPT_UINT df_sas : 1;
273 HPT_UINT df_tape : 1;
274 HPT_UINT df_changer : 1;
275
270 HIM * him;
271 int index;
272 PLDM_ADAPTER adapter;
273 void * phy_dev;
274
275 char model[40];
276
277 struct tq_item reset_dpc;

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

489void ldm_queue_cmd(PCOMMAND cmd);
490void vdev_queue_cmd(PCOMMAND cmd);
491void ldm_finish_cmd(PCOMMAND cmd);
492
493
494int ldm_acquire_lock(PVDEV vd, struct lock_request *req);
495void ldm_release_lock(PVDEV vd, struct lock_request *req);
496
276 HIM * him;
277 int index;
278 PLDM_ADAPTER adapter;
279 void * phy_dev;
280
281 char model[40];
282
283 struct tq_item reset_dpc;

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

495void ldm_queue_cmd(PCOMMAND cmd);
496void vdev_queue_cmd(PCOMMAND cmd);
497void ldm_finish_cmd(PCOMMAND cmd);
498
499
500int ldm_acquire_lock(PVDEV vd, struct lock_request *req);
501void ldm_release_lock(PVDEV vd, struct lock_request *req);
502
497void ldm_queue_task(struct task_queue *tq, struct tq_item *t);
498void ldm_queue_vbus_dpc(PVBUS vbus, struct tq_item *t);
503void ldm_queue_vbus_dpc(PVBUS vbus, struct tq_item *t);
504void ldm_queue_vbus_idle(PVBUS vbus, struct tq_item *t);
499
500HPT_BOOL ldm_intr(PVBUS vbus);
501void ldm_run(PVBUS vbus);
502int ldm_idle(PVBUS vbus);
503
504
505int ldm_reset_vbus(PVBUS vbus);
506
507
508void ldm_suspend(PVBUS vbus);
509void ldm_resume(PVBUS vbus);
505
506HPT_BOOL ldm_intr(PVBUS vbus);
507void ldm_run(PVBUS vbus);
508int ldm_idle(PVBUS vbus);
509
510
511int ldm_reset_vbus(PVBUS vbus);
512
513
514void ldm_suspend(PVBUS vbus);
515void ldm_resume(PVBUS vbus);
516LDM_ADAPTER *ldm_resume_adapter(PVBUS vbus, PLDM_ADAPTER ldm_adapter);
510void ldm_shutdown(PVBUS vbus);/*shutdown all the controllers*/
511
512
513#define HIM_EVENT_DEVICE_REMOVED 1
514#define HIM_EVENT_DEVICE_PLUGGED 2
515#define HIM_EVENT_DEVICE_ERROR 3
516#define HIM_EVENT_RESET_REQUIRED 4
517#define HIM_EVENT_QUIESCE_DEVICE 5

--- 16 unchanged lines hidden ---
517void ldm_shutdown(PVBUS vbus);/*shutdown all the controllers*/
518
519
520#define HIM_EVENT_DEVICE_REMOVED 1
521#define HIM_EVENT_DEVICE_PLUGGED 2
522#define HIM_EVENT_DEVICE_ERROR 3
523#define HIM_EVENT_RESET_REQUIRED 4
524#define HIM_EVENT_QUIESCE_DEVICE 5

--- 16 unchanged lines hidden ---