Print this page
hg changesets 607a5b46a793..b706c96317c3
Fix ncpus for early boot config
Purge the ack to the interrupt before exiting mptsas_intr()
Changes from code review
Changes to enable driver to compile.
Header paths, object lists, etc.
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/sys/scsi/adapters/mpt_sas3/mptsas3_hash.h
+++ new/usr/src/uts/common/sys/scsi/adapters/mpt_sas3/mptsas3_hash.h
1 1 /*
2 2 * This file and its contents are supplied under the terms of the
3 3 * Common Development and Distribution License ("CDDL"), version 1.0.
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
4 4 * You may only use this file in accordance with the terms of version
5 5 * 1.0 of the CDDL.
6 6 *
7 7 * A full copy of the text of the CDDL should have accompanied this
8 8 * source. A copy of the CDDL is also available via the Internet at
9 9 * http://www.illumos.org/license/CDDL.
10 10 */
11 11
12 12 /*
13 13 * Copyright 2014 Joyent, Inc. All rights reserved.
14 + * Copyright (c) 2014, Tegile Systems Inc. All rights reserved.
14 15 */
15 16
16 -#ifndef _SYS_SCSI_ADAPTERS_MPTHASH_H
17 -#define _SYS_SCSI_ADAPTERS_MPTHASH_H
17 +#ifndef _SYS_SCSI_ADAPTERS_MPTSAS3_HASH_H
18 +#define _SYS_SCSI_ADAPTERS_MPTSAS3_HASH_H
18 19
19 20 #include <sys/types.h>
20 21 #include <sys/list.h>
21 22
22 23 #define RHL_F_DEAD 0x01
23 24
24 25 typedef struct refhash_link {
25 26 list_node_t rhl_chain_link;
26 27 list_node_t rhl_global_link;
27 28 uint_t rhl_flags;
28 29 uint_t rhl_refcnt;
29 30 } refhash_link_t;
30 31
31 32 typedef uint64_t (*refhash_hash_f)(const void *);
32 33 typedef int (*refhash_cmp_f)(const void *, const void *);
33 34 typedef void (*refhash_dtor_f)(void *);
34 35 typedef int (*refhash_eval_f)(const void *, void *);
35 36
36 37 typedef struct refhash {
37 38 list_t *rh_buckets;
38 39 uint_t rh_bucket_count;
39 40 list_t rh_objs;
40 41 size_t rh_obj_size; /* used by mdb */
41 42 size_t rh_link_off;
42 43 size_t rh_tag_off;
43 44 refhash_hash_f rh_hash;
44 45 refhash_cmp_f rh_cmp;
45 46 refhash_dtor_f rh_dtor;
46 47 } refhash_t;
47 48
48 49 extern refhash_t *refhash_create(uint_t, refhash_hash_f, refhash_cmp_f,
49 50 refhash_dtor_f, size_t, size_t, size_t, int);
50 51 extern void refhash_destroy(refhash_t *);
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
51 52 extern void refhash_insert(refhash_t *, void *);
52 53 extern void refhash_remove(refhash_t *, void *);
53 54 extern void *refhash_lookup(refhash_t *, const void *);
54 55 extern void *refhash_linear_search(refhash_t *, refhash_eval_f, void *);
55 56 extern void refhash_hold(refhash_t *, void *);
56 57 extern void refhash_rele(refhash_t *, void *);
57 58 extern void *refhash_first(refhash_t *);
58 59 extern void *refhash_next(refhash_t *, void *);
59 60 extern boolean_t refhash_obj_valid(refhash_t *hp, const void *);
60 61
61 -#endif /* _SYS_SCSI_ADAPTERS_MPTHASH_H */
62 +#endif /* _SYS_SCSI_ADAPTERS_MPTSAS3_HASH_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX