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
   1 /*
   2  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   3  * Use is subject to license terms.
   4  */
   5 /*
   6  * Copyright 2012 Garrett D'Amore <garrett@damore.org>.  All rights reserved.
   7  */
   8 
   9 #ifndef _SYS_DDI_OBSOLETE_H
  10 #define _SYS_DDI_OBSOLETE_H
  11 
  12 /*
  13  * Obsoleted DDI Interfaces
  14  */
  15 
  16 #include <sys/types.h>
  17 #include <sys/dditypes.h>
  18 #include <sys/sunldi.h>
  19 
  20 
  21 #ifdef  __cplusplus
  22 extern "C" {
  23 #endif
  24 
  25 
  26 /*
  27  * The following are intentionally outside of _DDI_STRICT, they are obsolete
  28  * and shouldn't be used by drivers, but are still used in the consolidation.
  29  * e.g. DDI implementation.
  30  */
  31 int ddi_iomin(dev_info_t *dip, int initial, int streaming);
  32 
  33 
  34 #ifndef _DDI_STRICT
  35 
  36 extern long strtol(const char *, char **, int);
  37 extern unsigned long strtoul(const char *, char **, int);
  38 
  39 /* we'd really like to remove this; unbundled  nexus drivers might have it */
  40 int ddi_dma_map(dev_info_t *dip, dev_info_t *rdip,
  41     struct ddi_dma_req *dmareqp, ddi_dma_handle_t *handlep);
  42 
  43 uint8_t ddi_mem_get8(ddi_acc_handle_t handle, uint8_t *host_addr);
  44 uint16_t ddi_mem_get16(ddi_acc_handle_t handle, uint16_t *host_addr);
  45 uint32_t ddi_mem_get32(ddi_acc_handle_t handle, uint32_t *host_addr);
  46 uint64_t ddi_mem_get64(ddi_acc_handle_t handle, uint64_t *host_addr);
  47 void ddi_mem_put8(ddi_acc_handle_t handle, uint8_t *dev_addr, uint8_t value);
  48 void ddi_mem_put16(ddi_acc_handle_t handle, uint16_t *dev_addr, uint16_t value);
  49 void ddi_mem_put32(ddi_acc_handle_t handle, uint32_t *dev_addr, uint32_t value);
  50 void ddi_mem_put64(ddi_acc_handle_t handle, uint64_t *dev_addr, uint64_t value);
  51 
  52 void ddi_mem_rep_get8(ddi_acc_handle_t handle, uint8_t *host_addr,
  53     uint8_t *dev_addr, size_t repcount, uint_t flags);
  54 void ddi_mem_rep_get16(ddi_acc_handle_t handle, uint16_t *host_addr,
  55     uint16_t *dev_addr, size_t repcount, uint_t flags);
  56 void ddi_mem_rep_get32(ddi_acc_handle_t handle, uint32_t *host_addr,
  57     uint32_t *dev_addr, size_t repcount, uint_t flags);
  58 void ddi_mem_rep_get64(ddi_acc_handle_t handle, uint64_t *host_addr,
  59     uint64_t *dev_addr, size_t repcount, uint_t flags);
  60 void ddi_mem_rep_put8(ddi_acc_handle_t handle, uint8_t *host_addr,
  61     uint8_t *dev_addr, size_t repcount, uint_t flags);
  62 void ddi_mem_rep_put16(ddi_acc_handle_t handle, uint16_t *host_addr,


   1 /*
   2  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   3  * Use is subject to license terms.
   4  */
   5 /*
   6  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
   7  */
   8 
   9 #ifndef _SYS_DDI_OBSOLETE_H
  10 #define _SYS_DDI_OBSOLETE_H
  11 
  12 /*
  13  * Obsoleted DDI Interfaces
  14  */
  15 
  16 #include <sys/types.h>
  17 #include <sys/dditypes.h>
  18 #include <sys/sunldi.h>
  19 
  20 
  21 #ifdef  __cplusplus
  22 extern "C" {
  23 #endif
  24 
  25 








  26 #ifndef _DDI_STRICT
  27 
  28 extern long strtol(const char *, char **, int);
  29 extern unsigned long strtoul(const char *, char **, int);
  30 




  31 uint8_t ddi_mem_get8(ddi_acc_handle_t handle, uint8_t *host_addr);
  32 uint16_t ddi_mem_get16(ddi_acc_handle_t handle, uint16_t *host_addr);
  33 uint32_t ddi_mem_get32(ddi_acc_handle_t handle, uint32_t *host_addr);
  34 uint64_t ddi_mem_get64(ddi_acc_handle_t handle, uint64_t *host_addr);
  35 void ddi_mem_put8(ddi_acc_handle_t handle, uint8_t *dev_addr, uint8_t value);
  36 void ddi_mem_put16(ddi_acc_handle_t handle, uint16_t *dev_addr, uint16_t value);
  37 void ddi_mem_put32(ddi_acc_handle_t handle, uint32_t *dev_addr, uint32_t value);
  38 void ddi_mem_put64(ddi_acc_handle_t handle, uint64_t *dev_addr, uint64_t value);
  39 
  40 void ddi_mem_rep_get8(ddi_acc_handle_t handle, uint8_t *host_addr,
  41     uint8_t *dev_addr, size_t repcount, uint_t flags);
  42 void ddi_mem_rep_get16(ddi_acc_handle_t handle, uint16_t *host_addr,
  43     uint16_t *dev_addr, size_t repcount, uint_t flags);
  44 void ddi_mem_rep_get32(ddi_acc_handle_t handle, uint32_t *host_addr,
  45     uint32_t *dev_addr, size_t repcount, uint_t flags);
  46 void ddi_mem_rep_get64(ddi_acc_handle_t handle, uint64_t *host_addr,
  47     uint64_t *dev_addr, size_t repcount, uint_t flags);
  48 void ddi_mem_rep_put8(ddi_acc_handle_t handle, uint8_t *host_addr,
  49     uint8_t *dev_addr, size_t repcount, uint_t flags);
  50 void ddi_mem_rep_put16(ddi_acc_handle_t handle, uint16_t *host_addr,