Print this page
4630 clean stale references to ddi_iopb_alloc and ddi_iopb_free
4634 undocument scsi_hba_attach() and ddi_dma_lim(9s)

*** 22,32 **** * Copyright 2007 Sun Microsystems, Inc. * All rights reserved. Use is subject to license terms. */ /* ! * Copyright 2012 Garrett D'Amore <garrett@damore.org>. All rights reserved. */ /* * ddi_dki_comm.inc - Part of a pseudo-kernel to use when analyzing drivers * with warlock. --- 22,33 ---- * Copyright 2007 Sun Microsystems, Inc. * All rights reserved. Use is subject to license terms. */ /* ! * Copyright 2012 Garrett D'Amore <garrett@damore.org>. ! * Copyright 2014 Pluribus Networks, Inc. */ /* * ddi_dki_comm.inc - Part of a pseudo-kernel to use when analyzing drivers * with warlock.
*** 125,166 **** ddi_intr_handler_t handler, void *arg1) { thread_create(0, 0, (void (*)())handler, 0, 0, 0, 0, 0); } - int - ddi_dma_addr_setup( - dev_info_t *a, - struct as *b, - caddr_t c, - size_t d, - uint_t e, - int (*fp)(void), - caddr_t f, - ddi_dma_lim_t *g, - ddi_dma_handle_t *h) - { - struct bus_ops *ops; - (*ops->bus_dma_map)(0, 0, 0, 0); - thread_create(0, 0, (void (*)())fp, 0, 0, 0, 0, 0); - } - - int - ddi_dma_buf_setup( - dev_info_t *a, - struct buf *b, - uint_t c, - int (*fp)(void), - caddr_t d, - ddi_dma_lim_t *e, - ddi_dma_handle_t *f) - { - struct bus_ops *ops; - (*ops->bus_dma_map)(0, 0, 0, 0); - thread_create(0, 0, (void (*)())fp, 0, 0, 0, 0, 0); - } - void ddi_set_callback( int (*fp)(caddr_t), caddr_t a, uintptr_t *b) --- 126,135 ----
*** 178,281 **** struct bus_ops *ops; (*ops->bus_dma_map)(0, 0, 0, 0); } int - ddi_dma_setup( - dev_info_t *a, - struct ddi_dma_req *b, - ddi_dma_handle_t *c) - { - struct bus_ops *ops; - (*ops->bus_dma_map)(0, 0, 0, 0); - } - - int ddi_dma_mctl(dev_info_t *a, dev_info_t *b, ddi_dma_handle_t c, enum ddi_dma_ctlops d, off_t *e, size_t *f, caddr_t *g, uint_t h) { struct bus_ops *ops; (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0); } int - ddi_dma_kvaddrp(ddi_dma_handle_t h, off_t off, size_t len, caddr_t *kp) - { - struct bus_ops *ops; - (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0); - } - - int - ddi_dma_htoc(ddi_dma_handle_t h, off_t o, ddi_dma_cookie_t *c) - { - struct bus_ops *ops; - (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0); - } - - int - ddi_dma_coff(ddi_dma_handle_t h, ddi_dma_cookie_t *c, off_t *o) - { - struct bus_ops *ops; - (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0); - } - - int - ddi_dma_get_error(ddi_dma_handle_t h, uint_t len, caddr_t errblk) - { - struct bus_ops *ops; - (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0); - } - - int - ddi_dma_segtocookie(ddi_dma_seg_t seg, off_t *o, off_t *l, - ddi_dma_cookie_t *cookiep) - { - struct bus_ops *ops; - (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0); - } - - int ddi_dma_sync(ddi_dma_handle_t h, off_t o, size_t l, uint_t whom) { struct bus_ops *ops; - (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0); - } - - int - ddi_dma_free(ddi_dma_handle_t h) - { - struct bus_ops *ops; - (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0); - } - - int - ddi_iopb_alloc(dev_info_t *dip, ddi_dma_lim_t *limp, uint_t len, caddr_t *iopbp) - { - struct bus_ops *ops; - (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0); - } - - void - ddi_iopb_free(caddr_t iopb) - { - struct bus_ops *ops; - (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0); - } - - int - ddi_mem_alloc(dev_info_t *dip, ddi_dma_lim_t *limits, uint_t length, - uint_t flags, caddr_t *kaddrp, uint_t *real_length) - { - struct bus_ops *ops; - (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0); - } - - void - ddi_mem_free(caddr_t kaddr) - { - struct bus_ops *ops; (*ops->bus_dma_ctl)(0, 0, 0, 0, 0, 0, 0, 0); } int ddi_prop_op(dev_t dev, dev_info_t *dip, ddi_prop_op_t prop_op, int mod_flags, --- 147,168 ----