Print this page
4888 Undocument dma_req(9s)
4884 EOF scsi_hba_attach
4886 EOF ddi_dmae_getlim
4887 EOF ddi_iomin
4634 undocument scsi_hba_attach() and ddi_dma_lim(9s)
4630 clean stale references to ddi_iopb_alloc and ddi_iopb_free

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/warlock/ddi_dki_comm.inc
          +++ new/usr/src/uts/common/io/warlock/ddi_dki_comm.inc
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2007 Sun Microsystems, Inc.
  23   23   * All rights reserved.  Use is subject to license terms.
  24   24   */
  25   25  
  26   26  /*
  27      - * Copyright 2012 Garrett D'Amore <garrett@damore.org>.  All rights reserved.
       27 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  28   28   */
  29   29  
  30   30  /*
  31   31   * ddi_dki_comm.inc - Part of a pseudo-kernel to use when analyzing drivers
  32   32   * with warlock.
  33   33   *
  34   34   * The main idea here is to represent all of the ways that the kernel can
  35   35   * call into the driver, so that warlock has the correct view of the call
  36   36   * graph.
  37   37   *
↓ open down ↓ 124 lines elided ↑ open up ↑
 162  162  void
 163  163  ddi_set_callback(
 164  164          int (*fp)(caddr_t),
 165  165          caddr_t a,
 166  166          uintptr_t *b)
 167  167  {
 168  168          thread_create(0, 0, (void (*)())fp, 0, 0, 0, 0, 0);
 169  169  }
 170  170  
 171  171  int
 172      -ddi_dma_map(
 173      -        dev_info_t *a,
 174      -        dev_info_t *b,
 175      -        struct ddi_dma_req *c,
 176      -        ddi_dma_handle_t *d)
 177      -{
 178      -        struct bus_ops *ops;
 179      -        (*ops->bus_dma_map)(0, 0, 0, 0);
 180      -}
 181      -
 182      -int
 183      -ddi_dma_setup(
 184      -        dev_info_t *a,
 185      -        struct ddi_dma_req *b,
 186      -        ddi_dma_handle_t *c)
 187      -{
 188      -        struct bus_ops *ops;
 189      -        (*ops->bus_dma_map)(0, 0, 0, 0);
 190      -}
 191      -
 192      -int
 193  172  ddi_dma_mctl(dev_info_t *a, dev_info_t *b, ddi_dma_handle_t c,
 194  173          enum ddi_dma_ctlops d, off_t *e, size_t *f, caddr_t *g,
 195  174          uint_t h)
 196  175  {
 197  176          struct bus_ops *ops;
 198  177          (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0);
 199  178  }
 200  179  
 201  180  int
 202      -ddi_dma_kvaddrp(ddi_dma_handle_t h, off_t off, size_t len, caddr_t *kp)
 203      -{
 204      -        struct bus_ops *ops;
 205      -        (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0);
 206      -}
 207      -
 208      -int
 209      -ddi_dma_htoc(ddi_dma_handle_t h, off_t o, ddi_dma_cookie_t *c)
 210      -{
 211      -        struct bus_ops *ops;
 212      -        (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0);
 213      -}
 214      -
 215      -int
 216      -ddi_dma_coff(ddi_dma_handle_t h, ddi_dma_cookie_t *c, off_t *o)
 217      -{
 218      -        struct bus_ops *ops;
 219      -        (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0);
 220      -}
 221      -
 222      -int
 223  181  ddi_dma_get_error(ddi_dma_handle_t h, uint_t len, caddr_t errblk)
 224  182  {
 225  183          struct bus_ops *ops;
 226  184          (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0);
 227  185  }
 228  186  
 229  187  int
 230      -ddi_dma_segtocookie(ddi_dma_seg_t seg, off_t *o, off_t *l,
 231      -    ddi_dma_cookie_t *cookiep)
 232      -{
 233      -        struct bus_ops *ops;
 234      -        (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0);
 235      -}
 236      -
 237      -int
 238  188  ddi_dma_sync(ddi_dma_handle_t h, off_t o, size_t l, uint_t whom)
 239  189  {
 240  190          struct bus_ops *ops;
 241      -        (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0);
 242      -}
 243      -
 244      -int
 245      -ddi_dma_free(ddi_dma_handle_t h)
 246      -{
 247      -        struct bus_ops *ops;
 248      -        (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0);
 249      -}
 250      -
 251      -int
 252      -ddi_iopb_alloc(dev_info_t *dip, ddi_dma_lim_t *limp, uint_t len, caddr_t *iopbp)
 253      -{
 254      -        struct bus_ops *ops;
 255      -        (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0);
 256      -}
 257      -
 258      -void
 259      -ddi_iopb_free(caddr_t iopb)
 260      -{
 261      -        struct bus_ops *ops;
 262      -        (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0);
 263      -}
 264      -
 265      -int
 266      -ddi_mem_alloc(dev_info_t *dip, ddi_dma_lim_t *limits, uint_t length,
 267      -        uint_t flags, caddr_t *kaddrp, uint_t *real_length)
 268      -{
 269      -        struct bus_ops *ops;
 270      -        (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0);
 271      -}
 272      -
 273      -void
 274      -ddi_mem_free(caddr_t kaddr)
 275      -{
 276      -        struct bus_ops *ops;
 277  191          (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0);
 278  192  }
 279  193  
 280  194  int
 281  195  ddi_prop_op(dev_t dev, dev_info_t *dip, ddi_prop_op_t prop_op, int mod_flags,
 282  196      char *name, caddr_t valuep, int *lengthp)
 283  197  {
 284  198          struct bus_ops *ops;
 285  199          (*ops->bus_prop_op)(0, 0, 0, 0, 0, 0, 0, 0);
 286  200  }
↓ open down ↓ 27 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX