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.
   1 /*
   2  * This file and its contents are supplied under the terms of the
   3  * Common Development and Distribution License ("CDDL"), version 1.0.
   4  * You may only use this file in accordance with the terms of version
   5  * 1.0 of the CDDL.
   6  *
   7  * A full copy of the text of the CDDL should have accompanied this
   8  * source.  A copy of the CDDL is also available via the Internet at
   9  * http://www.illumos.org/license/CDDL.
  10  */
  11 
  12 /*
  13  * Copyright 2014 Joyent, Inc.  All rights reserved.

  14  */
  15 
  16 #include <sys/scsi/adapters/mpt_sas/mptsas_hash.h>
  17 #include <sys/sysmacros.h>
  18 #include <sys/types.h>
  19 #include <sys/kmem.h>
  20 #include <sys/list.h>
  21 #include <sys/ddi.h>
  22 
  23 #ifdef lint
  24 extern refhash_link_t *obj_to_link(refhash_t *, void *);
  25 extern void *link_to_obj(refhash_t *, refhash_link_t *);
  26 extern void *obj_to_tag(refhash_t *, void *);
  27 #else
  28 #define obj_to_link(_h, _o)     \
  29         ((refhash_link_t *)(((char *)(_o)) + (_h)->rh_link_off))
  30 #define link_to_obj(_h, _l)     \
  31         ((void *)(((char *)(_l)) - (_h)->rh_link_off))
  32 #define obj_to_tag(_h, _o)      \
  33         ((void *)(((char *)(_o)) + (_h)->rh_tag_off))
  34 #endif
  35 
  36 refhash_t *


   1 /*
   2  * This file and its contents are supplied under the terms of the
   3  * Common Development and Distribution License ("CDDL"), version 1.0.
   4  * You may only use this file in accordance with the terms of version
   5  * 1.0 of the CDDL.
   6  *
   7  * A full copy of the text of the CDDL should have accompanied this
   8  * source.  A copy of the CDDL is also available via the Internet at
   9  * http://www.illumos.org/license/CDDL.
  10  */
  11 
  12 /*
  13  * Copyright 2014 Joyent, Inc.  All rights reserved.
  14  * Copyright (c) 2014, Tegile Systems Inc. All rights reserved.
  15  */
  16 
  17 #include <sys/scsi/adapters/mpt_sas3/mptsas3_hash.h>
  18 #include <sys/sysmacros.h>
  19 #include <sys/types.h>
  20 #include <sys/kmem.h>
  21 #include <sys/list.h>
  22 #include <sys/ddi.h>
  23 
  24 #ifdef lint
  25 extern refhash_link_t *obj_to_link(refhash_t *, void *);
  26 extern void *link_to_obj(refhash_t *, refhash_link_t *);
  27 extern void *obj_to_tag(refhash_t *, void *);
  28 #else
  29 #define obj_to_link(_h, _o)     \
  30         ((refhash_link_t *)(((char *)(_o)) + (_h)->rh_link_off))
  31 #define link_to_obj(_h, _l)     \
  32         ((void *)(((char *)(_l)) - (_h)->rh_link_off))
  33 #define obj_to_tag(_h, _o)      \
  34         ((void *)(((char *)(_o)) + (_h)->rh_tag_off))
  35 #endif
  36 
  37 refhash_t *