Print this page
PANKOVs restructure


  45 #include <sys/cpuvar.h>
  46 #include <sys/cpupart.h>
  47 #include <sys/mem_config.h>
  48 #include <sys/mem_cage.h>
  49 #include <sys/memnode.h>
  50 #include <sys/callb.h>
  51 #include <sys/ontrap.h>
  52 #include <sys/obpdefs.h>
  53 #include <sys/promif.h>
  54 #include <sys/synch.h>
  55 #include <sys/systm.h>
  56 #include <sys/sysmacros.h>
  57 #include <sys/archsystm.h>
  58 #include <sys/machsystm.h>
  59 #include <sys/x_call.h>
  60 #include <sys/x86_archext.h>
  61 #include <sys/fastboot_impl.h>
  62 #include <sys/sysevent.h>
  63 #include <sys/sysevent/dr.h>
  64 #include <sys/sysevent/eventdefs.h>
  65 #include <sys/acpi/acpi.h>
  66 #include <sys/acpica.h>
  67 #include <sys/acpidev.h>
  68 #include <sys/acpidev_rsc.h>
  69 #include <sys/acpidev_dr.h>
  70 #include <sys/dr.h>
  71 #include <sys/dr_util.h>
  72 #include <sys/drmach.h>
  73 #include "drmach_acpi.h"
  74 
  75 /* utility */
  76 #define MBYTE           (1048576ull)
  77 #define _ptob64(p)      ((uint64_t)(p) << PAGESHIFT)
  78 #define _b64top(b)      ((pgcnt_t)((b) >> PAGESHIFT))
  79 
  80 static int              drmach_init(void);
  81 static void             drmach_fini(void);
  82 static int              drmach_name2type_idx(char *);
  83 static sbd_error_t      *drmach_mem_update_lgrp(drmachid_t);
  84 
  85 static void drmach_board_dispose(drmachid_t id);




  45 #include <sys/cpuvar.h>
  46 #include <sys/cpupart.h>
  47 #include <sys/mem_config.h>
  48 #include <sys/mem_cage.h>
  49 #include <sys/memnode.h>
  50 #include <sys/callb.h>
  51 #include <sys/ontrap.h>
  52 #include <sys/obpdefs.h>
  53 #include <sys/promif.h>
  54 #include <sys/synch.h>
  55 #include <sys/systm.h>
  56 #include <sys/sysmacros.h>
  57 #include <sys/archsystm.h>
  58 #include <sys/machsystm.h>
  59 #include <sys/x_call.h>
  60 #include <sys/x86_archext.h>
  61 #include <sys/fastboot_impl.h>
  62 #include <sys/sysevent.h>
  63 #include <sys/sysevent/dr.h>
  64 #include <sys/sysevent/eventdefs.h>
  65 #include <acpica/include/acpi.h>
  66 #include <sys/acpica.h>
  67 #include <sys/acpidev.h>
  68 #include <sys/acpidev_rsc.h>
  69 #include <sys/acpidev_dr.h>
  70 #include <sys/dr.h>
  71 #include <sys/dr_util.h>
  72 #include <sys/drmach.h>
  73 #include "drmach_acpi.h"
  74 
  75 /* utility */
  76 #define MBYTE           (1048576ull)
  77 #define _ptob64(p)      ((uint64_t)(p) << PAGESHIFT)
  78 #define _b64top(b)      ((pgcnt_t)((b) >> PAGESHIFT))
  79 
  80 static int              drmach_init(void);
  81 static void             drmach_fini(void);
  82 static int              drmach_name2type_idx(char *);
  83 static sbd_error_t      *drmach_mem_update_lgrp(drmachid_t);
  84 
  85 static void drmach_board_dispose(drmachid_t id);