Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/io/pci/pci_asm.s
          +++ new/usr/src/uts/sun4u/io/pci/pci_asm.s
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   27  /*
  30   28   * Assembly language support for physical big/little endian access of pcitool
  31   29   * in the PCI drivers.
  32   30   */
  33   31  
  34   32  #include <sys/asm_linkage.h>
  35   33  #include <sys/machthread.h>
  36   34  #include <sys/privregs.h>
  37   35  
  38   36  /*LINTLIBRARY*/
  39   37  
  40      -#if defined(lint)
  41      -
  42      -/*ARGSUSED*/
  43      -int pci_do_phys_peek(size_t size, uint64_t paddr, uint64_t *value, int type)
  44      -{ return (0); }
  45      -
  46      -int pci_do_phys_poke(size_t size, uint64_t paddr, uint64_t *value, int type)
  47      -{ return (0); }
  48      -
  49      -#else /* lint */
  50      -
  51   38  ! pci_do_phys_peek: Do physical address read.
  52   39  !
  53   40  ! %o0 is size in bytes - Must be 8, 4, 2 or 1.  Invalid sizes default to 1.
  54   41  ! %o1 is address to read
  55   42  ! %o2 is address to save value into
  56   43  ! %o3 is 0 for little endian, non-zero for big endian
  57   44  !
  58   45  ! To be called from an on_trap environment.
  59   46  ! Interrupts will be disabled for the duration of the read, to prevent
  60   47  ! an interrupt from raising the trap level to 1 and then a possible
↓ open down ↓ 96 lines elided ↑ open up ↑
 157  144  .poke_byte:
 158  145          ldub    [%o2], %g1              ! 8-bit!
 159  146          stuba   %g1, [%o1]%asi
 160  147  
 161  148  .pokedone:
 162  149          membar  #Sync
 163  150          retl
 164  151          mov     %g0, %o0
 165  152          SET_SIZE(pci_do_phys_poke)
 166  153   
 167      -#endif
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX