Print this page
11630 remove checks for 64-bit capable hardware

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun/sys/promif.h
          +++ new/usr/src/uts/sun/sys/promif.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  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  /*
  23   23   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
       25 + * Copyright 2019 Peter Tribble.
  25   26   */
  26   27  
  27   28  #ifndef _SYS_PROMIF_H
  28   29  #define _SYS_PROMIF_H
  29   30  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   31  #include <sys/types.h>
  33   32  #include <sys/obpdefs.h>
  34   33  
  35   34  #if defined(_KERNEL) || defined(_KMDB)
  36   35  #include <sys/va_list.h>
  37   36  #endif
  38   37  
  39   38  #ifdef  __cplusplus
  40   39  extern "C" {
  41   40  #endif
↓ open down ↓ 15 lines elided ↑ open up ↑
  57   56  /*
  58   57   * Due to FCode on sun4u machines running in a pseudo-32-bit environment
  59   58   * we need to enable code in several of the promif routines to ensure
  60   59   * that 64-bit pointers from the kernel are not passed through the CIF
  61   60   * to OpenBoot.
  62   61   *
  63   62   * Client programs defining this token need to provide two callbacks to
  64   63   * allow the promif routines to allocate and free memory allocated from
  65   64   * the bottom 32-bits of the 64-bit address space:
  66   65   *
  67      - *      void *promplat_alloc(size_t);
  68      - *      void promplat_free(void *, size_t);
       66 + *      void *promplat_alloc(size_t);
       67 + *      void promplat_free(void *, size_t);
  69   68   *
  70   69   * The alloc function should guarantee that it will never return an
  71   70   * invalid pointer.
  72   71   */
  73   72  #define PROM_32BIT_ADDRS
  74   73  #endif /* _BOOT */
  75   74  
  76   75  typedef void promif_preprom_f(void);
  77   76  typedef void promif_postprom_f(void);
  78   77  
↓ open down ↓ 99 lines elided ↑ open up ↑
 178  177          __NORETURN;
 179  178  extern  void            prom_reboot(char *bootstr);
 180  179  
 181  180  extern  void            prom_panic(char *string)
 182  181          __NORETURN;
 183  182  
 184  183  extern  int             prom_getversion(void);
 185  184  extern  int             prom_is_openprom(void);
 186  185  extern  int             prom_is_p1275(void);
 187  186  extern  int             prom_version_name(char *buf, int buflen);
 188      -extern  int             prom_version_check(char *buf, size_t len, pnode_t *n);
 189  187  
 190  188  extern  void            *prom_mon_id(void);     /* SMCC/OBP platform centric */
 191  189  
 192  190  extern  uint_t          prom_gettime(void);
 193  191  
 194  192  extern  char            *prom_bootpath(void);
 195  193  extern  char            *prom_bootargs(void);
 196  194  
 197  195  extern  void            prom_interpret(char *str, uintptr_t arg1,
 198  196                              uintptr_t arg2, uintptr_t arg3, uintptr_t arg4,
 199  197                              uintptr_t arg5);
 200  198  
 201  199  /*
 202      - * Return code values from prom_version_check:
 203      - *
 204      - * This routine uses past-prediction mode to determine if the firmware
 205      - * on the current system is 64-bit ready.
 206      - *
 207      - * return code 2 could happen on a board-based server with a slave CPU board
 208      - * running down-rev firmware and the current master running adequate fw.
 209      - */
 210      -#define PROM_VER64_OK           0       /* Prom is 64-bit ready (or n/a) */
 211      -#define PROM_VER64_UPGRADE      1       /* Down-rev firmware is running */
 212      -#define PROM_VER64_SUGGEST      2       /* Down-rev firmware detected .. */
 213      -                                        /* .. but not currently active */
 214      -
 215      -/*
 216  200   * Administrative group: OBP only.
 217  201   */
 218  202  extern  int             prom_sethandler(void (*v0_func)(), void (*v2_func)());
 219  203  
 220  204  extern  struct bootparam *prom_bootparam(void);
 221  205  
 222  206  /*
 223  207   * Administrative group: IEEE 1275-1994 only.
 224  208   */
 225  209  extern void             *prom_set_callback(void *handler);
↓ open down ↓ 131 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX