Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4v/io/n2rng/n2rng_hcall.s
          +++ new/usr/src/uts/sun4v/io/n2rng/n2rng_hcall.s
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  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.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27      -
  28   26  /*
  29   27   * Hypervisor calls called by ncp driver.
  30   28   */
  31   29  
  32   30  #include <sys/asm_linkage.h>
  33   31  #include <sys/hypervisor_api.h>
  34   32  #include <sys/n2rng.h>
  35   33  
  36      -#if defined(lint) || defined(__lint)
  37      -
  38      -/*ARGSUSED*/
  39      -uint64_t
  40      -hv_rng_get_diag_control()
  41      -{ return (0); }
  42      -
  43      -/*ARGSUSED*/
  44      -uint64_t
  45      -hv_rng_ctl_read(uint64_t ctlregsptr_ra, uint64_t *rstate, uint64_t *tdelta)
  46      -{ return (0); }
  47      -
  48      -/*ARGSUSED*/
  49      -uint64_t
  50      -hv_rng_ctl_read_v2(uint64_t ctlregsptr_ra, uint64_t rngid, uint64_t *rstate,
  51      -                uint64_t *tdelta, uint64_t *wdelta, uint64_t *wstate)
  52      -{ return (0); }
  53      -
  54      -/*ARGSUSED*/
  55      -uint64_t
  56      -hv_rng_ctl_write(uint64_t ctlregsptr_ra, uint64_t nstate, uint64_t wtimeout,
  57      -                uint64_t *tdelta)
  58      -{ return (0); }
  59      -
  60      -/*ARGSUSED*/
  61      -uint64_t
  62      -hv_rng_ctl_write_v2(uint64_t ctlregsptr_ra, uint64_t nstate, uint64_t wtimeout,
  63      -                uint64_t rngid)
  64      -{ return (0); }
  65      -
  66      -/*ARGSUSED*/
  67      -uint64_t
  68      -hv_rng_data_read_diag(uint64_t buffer_ra, uint64_t sz, uint64_t *tdelta)
  69      -{ return (0); }
  70      -
  71      -/*ARGSUSED*/
  72      -uint64_t
  73      -hv_rng_data_read_diag_v2(uint64_t buffer_ra, uint64_t sz, uint64_t rngid,
  74      -                uint64_t *tdelta)
  75      -{ return (0); }
  76      -
  77      -/*ARGSUSED*/
  78      -uint64_t
  79      -hv_rng_data_read(uint64_t buffer_ra, uint64_t *tdelta)
  80      -{ return (0); }
  81      -
  82      -#else   /* lint || __lint */
  83      -
  84   34          /*
  85   35           * hv_rng_get_diag_control()
  86   36           */
  87   37          ENTRY(hv_rng_get_diag_control)
  88   38          mov     HV_RNG_GET_DIAG_CONTROL, %o5
  89   39          ta      FAST_TRAP
  90   40          retl
  91   41          nop
  92   42          SET_SIZE(hv_rng_get_diag_control)
  93   43  
↓ open down ↓ 82 lines elided ↑ open up ↑
 176  126           * hv_rng_data_read(uint64_t buffer_ra, uint64_t *tdelta)
 177  127           */
 178  128          ENTRY(hv_rng_data_read)
 179  129          mov     %o1, %o4
 180  130          mov     HV_RNG_DATA_READ, %o5
 181  131          ta      FAST_TRAP
 182  132          retl
 183  133          stx     %o1, [%o4]
 184  134          SET_SIZE(hv_rng_data_read)
 185  135  
 186      -#endif  /* lint || __lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX