Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
addrs.h File Reference
#include <linux/smp.h>
#include <linux/types.h>
#include <asm/addrspace.h>
#include <asm/sn/kldir.h>

Go to the source code of this file.

Macros

#define PS_UINT_CAST   (unsigned long)
 
#define UINT64_CAST   (unsigned long)
 
#define HUBREG_CAST   (volatile hubreg_t *)
 
#define NASID_GET_META(_n)   ((_n) >> NASID_LOCAL_BITS)
 
#define NASID_MAKE(_m, _l)   (((_m) << NASID_LOCAL_BITS) | (_l))
 
#define NODE_ADDRSPACE_MASK   (NODE_ADDRSPACE_SIZE - 1)
 
#define TO_NODE_ADDRSPACE(_pa)   (UINT64_CAST (_pa) & NODE_ADDRSPACE_MASK)
 
#define CHANGE_ADDR_NASID(_pa, _nasid)
 
#define NODE_OFFSET(_n)   (UINT64_CAST (_n) << NODE_SIZE_BITS)
 
#define NODE_CAC_BASE(_n)   (CAC_BASE + NODE_OFFSET(_n))
 
#define NODE_HSPEC_BASE(_n)   (HSPEC_BASE + NODE_OFFSET(_n))
 
#define NODE_IO_BASE(_n)   (IO_BASE + NODE_OFFSET(_n))
 
#define NODE_MSPEC_BASE(_n)   (MSPEC_BASE + NODE_OFFSET(_n))
 
#define NODE_UNCAC_BASE(_n)   (UNCAC_BASE + NODE_OFFSET(_n))
 
#define TO_NODE(_n, _x)   (NODE_OFFSET(_n) | ((_x) ))
 
#define TO_NODE_CAC(_n, _x)   (NODE_CAC_BASE(_n) | ((_x) & TO_PHYS_MASK))
 
#define TO_NODE_UNCAC(_n, _x)   (NODE_UNCAC_BASE(_n) | ((_x) & TO_PHYS_MASK))
 
#define TO_NODE_MSPEC(_n, _x)   (NODE_MSPEC_BASE(_n) | ((_x) & TO_PHYS_MASK))
 
#define TO_NODE_HSPEC(_n, _x)   (NODE_HSPEC_BASE(_n) | ((_x) & TO_PHYS_MASK))
 
#define RAW_NODE_SWIN_BASE(nasid, widget)   (NODE_IO_BASE(nasid) + (UINT64_CAST(widget) << SWIN_SIZE_BITS))
 
#define WIDGETID_GET(addr)   ((unsigned char)((addr >> SWIN_SIZE_BITS) & 0xff))
 
#define SWIN_SIZE_BITS   24
 
#define SWIN_SIZE   (UINT64_CAST 1 << 24)
 
#define SWIN_SIZEMASK   (SWIN_SIZE - 1)
 
#define SWIN_WIDGET_MASK   0xF
 
#define SWIN_WIDGETADDR(addr)   ((addr) & SWIN_SIZEMASK)
 
#define SWIN_WIDGETNUM(addr)   (((addr) >> SWIN_SIZE_BITS) & SWIN_WIDGET_MASK)
 
#define NODE_SWIN_ADDR(nasid, addr)
 
#define UALIAS_BASE   HSPEC_BASE
 
#define UALIAS_SIZE   0x10000000 /* 256 Megabytes */
 
#define UALIAS_LIMIT   (UALIAS_BASE + UALIAS_SIZE)
 
#define HUB_REGISTER_WIDGET   1
 
#define IALIAS_BASE   NODE_SWIN_BASE(0, HUB_REGISTER_WIDGET)
 
#define IALIAS_SIZE   0x800000 /* 8 Megabytes */
 
#define IS_IALIAS(_a)
 
#define NODE_BDOOR_BASE(_n)   (NODE_HSPEC_BASE(_n) + (NODE_ADDRSPACE_SIZE/2))
 
#define NODE_BDECC_BASE(_n)   (NODE_BDOOR_BASE(_n))
 
#define NODE_BDDIR_BASE(_n)   (NODE_BDOOR_BASE(_n) + (NODE_ADDRSPACE_SIZE/4))
 
#define LOCAL_HUB_ADDR(_x)   (HUBREG_CAST (IALIAS_BASE + (_x)))
 
#define REMOTE_HUB_ADDR(_n, _x)
 
#define HUB_L(_a)   *(_a)
 
#define HUB_S(_a, _d)   *(_a) = (_d)
 
#define LOCAL_HUB_L(_r)   HUB_L(LOCAL_HUB_ADDR(_r))
 
#define LOCAL_HUB_S(_r, _d)   HUB_S(LOCAL_HUB_ADDR(_r), (_d))
 
#define REMOTE_HUB_L(_n, _r)   HUB_L(REMOTE_HUB_ADDR((_n), (_r)))
 
#define REMOTE_HUB_S(_n, _r, _d)   HUB_S(REMOTE_HUB_ADDR((_n), (_r)), (_d))
 
#define REMOTE_HUB_PI_L(_n, _sn, _r)   HUB_L(REMOTE_HUB_PI_ADDR((_n), (_sn), (_r)))
 
#define REMOTE_HUB_PI_S(_n, _sn, _r, _d)   HUB_S(REMOTE_HUB_PI_ADDR((_n), (_sn), (_r)), (_d))
 
#define HUB_REG_PTR(_base, _off)   (HUBREG_CAST((__psunsigned_t)(_base) + (__psunsigned_t)(_off)))
 
#define HUB_REG_PTR_L(_base, _off)   HUB_L(HUB_REG_PTR((_base), (_off)))
 
#define HUB_REG_PTR_S(_base, _off, _data)   HUB_S(HUB_REG_PTR((_base), (_off)), (_data))
 
#define PHYS_RAMBASE   0x0
 
#define K0_RAMBASE   PHYS_TO_K0(PHYS_RAMBASE)
 
#define EX_HANDLER_OFFSET(slice)   ((slice) << 16)
 
#define EX_HANDLER_ADDR(nasid, slice)   PHYS_TO_K0(NODE_OFFSET(nasid) | EX_HANDLER_OFFSET(slice))
 
#define EX_HANDLER_SIZE   0x0400
 
#define EX_FRAME_OFFSET(slice)   ((slice) << 16 | 0x400)
 
#define EX_FRAME_ADDR(nasid, slice)   PHYS_TO_K0(NODE_OFFSET(nasid) | EX_FRAME_OFFSET(slice))
 
#define EX_FRAME_SIZE   0x0c00
 
#define ARCS_SPB_OFFSET   0x1000
 
#define ARCS_SPB_ADDR(nasid)   PHYS_TO_K0(NODE_OFFSET(nasid) | ARCS_SPB_OFFSET)
 
#define ARCS_SPB_SIZE   0x0400
 
#define KLDIR_OFFSET   0x2000
 
#define KLDIR_ADDR(nasid)   TO_NODE_UNCAC((nasid), KLDIR_OFFSET)
 
#define KLDIR_SIZE   0x0400
 
#define KLI_LAUNCH   0 /* Dir. entries */
 
#define KLI_KLCONFIG   1
 
#define KLI_NMI   2
 
#define KLI_GDA   3
 
#define KLI_FREEMEM   4
 
#define KLI_SYMMON_STK   5
 
#define KLI_PI_ERROR   6
 
#define KLI_KERN_VARS   7
 
#define KLI_KERN_XP   8
 
#define KLI_KERN_PARTID   9
 
#define KLD_BASE(nasid)   ((kldir_ent_t *) KLDIR_ADDR(nasid))
 
#define KLD_LAUNCH(nasid)   (KLD_BASE(nasid) + KLI_LAUNCH)
 
#define KLD_NMI(nasid)   (KLD_BASE(nasid) + KLI_NMI)
 
#define KLD_KLCONFIG(nasid)   (KLD_BASE(nasid) + KLI_KLCONFIG)
 
#define KLD_PI_ERROR(nasid)   (KLD_BASE(nasid) + KLI_PI_ERROR)
 
#define KLD_GDA(nasid)   (KLD_BASE(nasid) + KLI_GDA)
 
#define KLD_SYMMON_STK(nasid)   (KLD_BASE(nasid) + KLI_SYMMON_STK)
 
#define KLD_FREEMEM(nasid)   (KLD_BASE(nasid) + KLI_FREEMEM)
 
#define KLD_KERN_VARS(nasid)   (KLD_BASE(nasid) + KLI_KERN_VARS)
 
#define KLD_KERN_XP(nasid)   (KLD_BASE(nasid) + KLI_KERN_XP)
 
#define KLD_KERN_PARTID(nasid)   (KLD_BASE(nasid) + KLI_KERN_PARTID)
 
#define LAUNCH_OFFSET(nasid, slice)
 
#define LAUNCH_ADDR(nasid, slice)   TO_NODE_UNCAC((nasid), LAUNCH_OFFSET(nasid, slice))
 
#define LAUNCH_SIZE(nasid)   KLD_LAUNCH(nasid)->size
 
#define SN_NMI_OFFSET(nasid, slice)
 
#define NMI_ADDR(nasid, slice)   TO_NODE_UNCAC((nasid), SN_NMI_OFFSET(nasid, slice))
 
#define NMI_SIZE(nasid)   KLD_NMI(nasid)->size
 
#define KLCONFIG_OFFSET(nasid)   KLD_KLCONFIG(nasid)->offset
 
#define KLCONFIG_ADDR(nasid)   TO_NODE_UNCAC((nasid), KLCONFIG_OFFSET(nasid))
 
#define KLCONFIG_SIZE(nasid)   KLD_KLCONFIG(nasid)->size
 
#define GDA_ADDR(nasid)   KLD_GDA(nasid)->pointer
 
#define GDA_SIZE(nasid)   KLD_GDA(nasid)->size
 
#define SYMMON_STK_OFFSET(nasid, slice)
 
#define SYMMON_STK_STRIDE(nasid)   KLD_SYMMON_STK(nasid)->stride
 
#define SYMMON_STK_ADDR(nasid, slice)   TO_NODE_CAC((nasid), SYMMON_STK_OFFSET(nasid, slice))
 
#define SYMMON_STK_SIZE(nasid)   KLD_SYMMON_STK(nasid)->stride
 
#define SYMMON_STK_END(nasid)   (SYMMON_STK_ADDR(nasid, 0) + KLD_SYMMON_STK(nasid)->size)
 
#define UNIX_DEBUG_LOADADDR   0x300000
 
#define SYMMON_LOADADDR(nasid)   TO_NODE(nasid, PHYS_TO_K0(UNIX_DEBUG_LOADADDR - 0x1000))
 
#define FREEMEM_OFFSET(nasid)   KLD_FREEMEM(nasid)->offset
 
#define FREEMEM_ADDR(nasid)   SYMMON_STK_END(nasid)
 
#define FREEMEM_SIZE(nasid)   KLD_FREEMEM(nasid)->size
 
#define PI_ERROR_OFFSET(nasid)   KLD_PI_ERROR(nasid)->offset
 
#define PI_ERROR_ADDR(nasid)   TO_NODE_UNCAC((nasid), PI_ERROR_OFFSET(nasid))
 
#define PI_ERROR_SIZE(nasid)   KLD_PI_ERROR(nasid)->size
 
#define NODE_OFFSET_TO_K0(_nasid, _off)   PHYS_TO_K0((NODE_OFFSET(_nasid) + (_off)) | CAC_BASE)
 
#define NODE_OFFSET_TO_K1(_nasid, _off)   TO_UNCAC((NODE_OFFSET(_nasid) + (_off)) | UNCAC_BASE)
 
#define K0_TO_NODE_OFFSET(_k0addr)   ((__psunsigned_t)(_k0addr) & NODE_ADDRSPACE_MASK)
 
#define KERN_VARS_ADDR(nasid)   KLD_KERN_VARS(nasid)->pointer
 
#define KERN_VARS_SIZE(nasid)   KLD_KERN_VARS(nasid)->size
 
#define KERN_XP_ADDR(nasid)   KLD_KERN_XP(nasid)->pointer
 
#define KERN_XP_SIZE(nasid)   KLD_KERN_XP(nasid)->size
 
#define GPDA_ADDR(nasid)   TO_NODE_CAC(nasid, GPDA_OFFSET)
 

Macro Definition Documentation

#define ARCS_SPB_ADDR (   nasid)    PHYS_TO_K0(NODE_OFFSET(nasid) | ARCS_SPB_OFFSET)

Definition at line 313 of file addrs.h.

#define ARCS_SPB_OFFSET   0x1000

Definition at line 312 of file addrs.h.

#define ARCS_SPB_SIZE   0x0400

Definition at line 315 of file addrs.h.

#define CHANGE_ADDR_NASID (   _pa,
  _nasid 
)
Value:
((UINT64_CAST(_pa) & ~NASID_MASK) | \
(UINT64_CAST(_nasid) << NASID_SHFT))

Definition at line 53 of file addrs.h.

#define EX_FRAME_ADDR (   nasid,
  slice 
)    PHYS_TO_K0(NODE_OFFSET(nasid) | EX_FRAME_OFFSET(slice))

Definition at line 308 of file addrs.h.

#define EX_FRAME_OFFSET (   slice)    ((slice) << 16 | 0x400)

Definition at line 307 of file addrs.h.

#define EX_FRAME_SIZE   0x0c00

Definition at line 310 of file addrs.h.

#define EX_HANDLER_ADDR (   nasid,
  slice 
)    PHYS_TO_K0(NODE_OFFSET(nasid) | EX_HANDLER_OFFSET(slice))

Definition at line 303 of file addrs.h.

#define EX_HANDLER_OFFSET (   slice)    ((slice) << 16)

Definition at line 302 of file addrs.h.

#define EX_HANDLER_SIZE   0x0400

Definition at line 305 of file addrs.h.

#define FREEMEM_ADDR (   nasid)    SYMMON_STK_END(nasid)

Definition at line 398 of file addrs.h.

#define FREEMEM_OFFSET (   nasid)    KLD_FREEMEM(nasid)->offset

Definition at line 397 of file addrs.h.

#define FREEMEM_SIZE (   nasid)    KLD_FREEMEM(nasid)->size

Definition at line 406 of file addrs.h.

#define GDA_ADDR (   nasid)    KLD_GDA(nasid)->pointer

Definition at line 375 of file addrs.h.

#define GDA_SIZE (   nasid)    KLD_GDA(nasid)->size

Definition at line 376 of file addrs.h.

#define GPDA_ADDR (   nasid)    TO_NODE_CAC(nasid, GPDA_OFFSET)

Definition at line 426 of file addrs.h.

#define HUB_L (   _a)    *(_a)

Definition at line 269 of file addrs.h.

#define HUB_REG_PTR (   _base,
  _off 
)    (HUBREG_CAST((__psunsigned_t)(_base) + (__psunsigned_t)(_off)))

Definition at line 285 of file addrs.h.

#define HUB_REG_PTR_L (   _base,
  _off 
)    HUB_L(HUB_REG_PTR((_base), (_off)))

Definition at line 288 of file addrs.h.

#define HUB_REG_PTR_S (   _base,
  _off,
  _data 
)    HUB_S(HUB_REG_PTR((_base), (_off)), (_data))

Definition at line 291 of file addrs.h.

#define HUB_REGISTER_WIDGET   1

Definition at line 153 of file addrs.h.

#define HUB_S (   _a,
  _d 
)    *(_a) = (_d)

Definition at line 270 of file addrs.h.

#define HUBREG_CAST   (volatile hubreg_t *)

Definition at line 33 of file addrs.h.

#define IALIAS_BASE   NODE_SWIN_BASE(0, HUB_REGISTER_WIDGET)

Definition at line 154 of file addrs.h.

#define IALIAS_SIZE   0x800000 /* 8 Megabytes */

Definition at line 155 of file addrs.h.

#define IS_IALIAS (   _a)
Value:
(((_a) >= IALIAS_BASE) && \
((_a) < (IALIAS_BASE + IALIAS_SIZE)))

Definition at line 156 of file addrs.h.

#define K0_RAMBASE   PHYS_TO_K0(PHYS_RAMBASE)

Definition at line 300 of file addrs.h.

#define K0_TO_NODE_OFFSET (   _k0addr)    ((__psunsigned_t)(_k0addr) & NODE_ADDRSPACE_MASK)

Definition at line 417 of file addrs.h.

#define KERN_VARS_ADDR (   nasid)    KLD_KERN_VARS(nasid)->pointer

Definition at line 420 of file addrs.h.

#define KERN_VARS_SIZE (   nasid)    KLD_KERN_VARS(nasid)->size

Definition at line 421 of file addrs.h.

#define KERN_XP_ADDR (   nasid)    KLD_KERN_XP(nasid)->pointer

Definition at line 423 of file addrs.h.

#define KERN_XP_SIZE (   nasid)    KLD_KERN_XP(nasid)->size

Definition at line 424 of file addrs.h.

#define KLCONFIG_ADDR (   nasid)    TO_NODE_UNCAC((nasid), KLCONFIG_OFFSET(nasid))

Definition at line 371 of file addrs.h.

#define KLCONFIG_OFFSET (   nasid)    KLD_KLCONFIG(nasid)->offset

Definition at line 370 of file addrs.h.

#define KLCONFIG_SIZE (   nasid)    KLD_KLCONFIG(nasid)->size

Definition at line 373 of file addrs.h.

#define KLD_BASE (   nasid)    ((kldir_ent_t *) KLDIR_ADDR(nasid))

Definition at line 344 of file addrs.h.

#define KLD_FREEMEM (   nasid)    (KLD_BASE(nasid) + KLI_FREEMEM)

Definition at line 351 of file addrs.h.

#define KLD_GDA (   nasid)    (KLD_BASE(nasid) + KLI_GDA)

Definition at line 349 of file addrs.h.

#define KLD_KERN_PARTID (   nasid)    (KLD_BASE(nasid) + KLI_KERN_PARTID)

Definition at line 354 of file addrs.h.

#define KLD_KERN_VARS (   nasid)    (KLD_BASE(nasid) + KLI_KERN_VARS)

Definition at line 352 of file addrs.h.

#define KLD_KERN_XP (   nasid)    (KLD_BASE(nasid) + KLI_KERN_XP)

Definition at line 353 of file addrs.h.

#define KLD_KLCONFIG (   nasid)    (KLD_BASE(nasid) + KLI_KLCONFIG)

Definition at line 347 of file addrs.h.

#define KLD_LAUNCH (   nasid)    (KLD_BASE(nasid) + KLI_LAUNCH)

Definition at line 345 of file addrs.h.

#define KLD_NMI (   nasid)    (KLD_BASE(nasid) + KLI_NMI)

Definition at line 346 of file addrs.h.

#define KLD_PI_ERROR (   nasid)    (KLD_BASE(nasid) + KLI_PI_ERROR)

Definition at line 348 of file addrs.h.

#define KLD_SYMMON_STK (   nasid)    (KLD_BASE(nasid) + KLI_SYMMON_STK)

Definition at line 350 of file addrs.h.

#define KLDIR_ADDR (   nasid)    TO_NODE_UNCAC((nasid), KLDIR_OFFSET)

Definition at line 318 of file addrs.h.

#define KLDIR_OFFSET   0x2000

Definition at line 317 of file addrs.h.

#define KLDIR_SIZE   0x0400

Definition at line 320 of file addrs.h.

#define KLI_FREEMEM   4

Definition at line 335 of file addrs.h.

#define KLI_GDA   3

Definition at line 334 of file addrs.h.

#define KLI_KERN_PARTID   9

Definition at line 340 of file addrs.h.

#define KLI_KERN_VARS   7

Definition at line 338 of file addrs.h.

#define KLI_KERN_XP   8

Definition at line 339 of file addrs.h.

#define KLI_KLCONFIG   1

Definition at line 332 of file addrs.h.

#define KLI_LAUNCH   0 /* Dir. entries */

Definition at line 331 of file addrs.h.

#define KLI_NMI   2

Definition at line 333 of file addrs.h.

#define KLI_PI_ERROR   6

Definition at line 337 of file addrs.h.

#define KLI_SYMMON_STK   5

Definition at line 336 of file addrs.h.

#define LAUNCH_ADDR (   nasid,
  slice 
)    TO_NODE_UNCAC((nasid), LAUNCH_OFFSET(nasid, slice))

Definition at line 359 of file addrs.h.

#define LAUNCH_OFFSET (   nasid,
  slice 
)
Value:
(KLD_LAUNCH(nasid)->offset + \
KLD_LAUNCH(nasid)->stride * (slice))

Definition at line 356 of file addrs.h.

#define LAUNCH_SIZE (   nasid)    KLD_LAUNCH(nasid)->size

Definition at line 361 of file addrs.h.

#define LOCAL_HUB_ADDR (   _x)    (HUBREG_CAST (IALIAS_BASE + (_x)))

Definition at line 259 of file addrs.h.

#define LOCAL_HUB_L (   _r)    HUB_L(LOCAL_HUB_ADDR(_r))

Definition at line 272 of file addrs.h.

#define LOCAL_HUB_S (   _r,
  _d 
)    HUB_S(LOCAL_HUB_ADDR(_r), (_d))

Definition at line 273 of file addrs.h.

#define NASID_GET_META (   _n)    ((_n) >> NASID_LOCAL_BITS)

Definition at line 44 of file addrs.h.

#define NASID_MAKE (   _m,
  _l 
)    (((_m) << NASID_LOCAL_BITS) | (_l))

Definition at line 48 of file addrs.h.

#define NMI_ADDR (   nasid,
  slice 
)    TO_NODE_UNCAC((nasid), SN_NMI_OFFSET(nasid, slice))

Definition at line 366 of file addrs.h.

#define NMI_SIZE (   nasid)    KLD_NMI(nasid)->size

Definition at line 368 of file addrs.h.

#define NODE_ADDRSPACE_MASK   (NODE_ADDRSPACE_SIZE - 1)

Definition at line 50 of file addrs.h.

#define NODE_BDDIR_BASE (   _n)    (NODE_BDOOR_BASE(_n) + (NODE_ADDRSPACE_SIZE/4))

Definition at line 191 of file addrs.h.

#define NODE_BDECC_BASE (   _n)    (NODE_BDOOR_BASE(_n))

Definition at line 190 of file addrs.h.

#define NODE_BDOOR_BASE (   _n)    (NODE_HSPEC_BASE(_n) + (NODE_ADDRSPACE_SIZE/2))

Definition at line 188 of file addrs.h.

#define NODE_CAC_BASE (   _n)    (CAC_BASE + NODE_OFFSET(_n))

Definition at line 65 of file addrs.h.

#define NODE_HSPEC_BASE (   _n)    (HSPEC_BASE + NODE_OFFSET(_n))

Definition at line 66 of file addrs.h.

#define NODE_IO_BASE (   _n)    (IO_BASE + NODE_OFFSET(_n))

Definition at line 67 of file addrs.h.

#define NODE_MSPEC_BASE (   _n)    (MSPEC_BASE + NODE_OFFSET(_n))

Definition at line 68 of file addrs.h.

#define NODE_OFFSET (   _n)    (UINT64_CAST (_n) << NODE_SIZE_BITS)

Definition at line 63 of file addrs.h.

#define NODE_OFFSET_TO_K0 (   _nasid,
  _off 
)    PHYS_TO_K0((NODE_OFFSET(_nasid) + (_off)) | CAC_BASE)

Definition at line 413 of file addrs.h.

#define NODE_OFFSET_TO_K1 (   _nasid,
  _off 
)    TO_UNCAC((NODE_OFFSET(_nasid) + (_off)) | UNCAC_BASE)

Definition at line 415 of file addrs.h.

#define NODE_SWIN_ADDR (   nasid,
  addr 
)
Value:
(((addr) >= NODE_SWIN_BASE(nasid, 0)) && \
))

Definition at line 111 of file addrs.h.

#define NODE_UNCAC_BASE (   _n)    (UNCAC_BASE + NODE_OFFSET(_n))

Definition at line 69 of file addrs.h.

#define PHYS_RAMBASE   0x0

Definition at line 299 of file addrs.h.

#define PI_ERROR_ADDR (   nasid)    TO_NODE_UNCAC((nasid), PI_ERROR_OFFSET(nasid))

Definition at line 409 of file addrs.h.

#define PI_ERROR_OFFSET (   nasid)    KLD_PI_ERROR(nasid)->offset

Definition at line 408 of file addrs.h.

#define PI_ERROR_SIZE (   nasid)    KLD_PI_ERROR(nasid)->size

Definition at line 411 of file addrs.h.

#define PS_UINT_CAST   (unsigned long)

Definition at line 30 of file addrs.h.

#define RAW_NODE_SWIN_BASE (   nasid,
  widget 
)    (NODE_IO_BASE(nasid) + (UINT64_CAST(widget) << SWIN_SIZE_BITS))

Definition at line 78 of file addrs.h.

#define REMOTE_HUB_ADDR (   _n,
  _x 
)
Value:
0x800000 + (_x)))

Definition at line 260 of file addrs.h.

#define REMOTE_HUB_L (   _n,
  _r 
)    HUB_L(REMOTE_HUB_ADDR((_n), (_r)))

Definition at line 274 of file addrs.h.

#define REMOTE_HUB_PI_L (   _n,
  _sn,
  _r 
)    HUB_L(REMOTE_HUB_PI_ADDR((_n), (_sn), (_r)))

Definition at line 276 of file addrs.h.

#define REMOTE_HUB_PI_S (   _n,
  _sn,
  _r,
  _d 
)    HUB_S(REMOTE_HUB_PI_ADDR((_n), (_sn), (_r)), (_d))

Definition at line 277 of file addrs.h.

#define REMOTE_HUB_S (   _n,
  _r,
  _d 
)    HUB_S(REMOTE_HUB_ADDR((_n), (_r)), (_d))

Definition at line 275 of file addrs.h.

#define SN_NMI_OFFSET (   nasid,
  slice 
)
Value:
(KLD_NMI(nasid)->offset + \
KLD_NMI(nasid)->stride * (slice))

Definition at line 363 of file addrs.h.

#define SWIN_SIZE   (UINT64_CAST 1 << 24)

Definition at line 90 of file addrs.h.

#define SWIN_SIZE_BITS   24

Definition at line 89 of file addrs.h.

#define SWIN_SIZEMASK   (SWIN_SIZE - 1)

Definition at line 91 of file addrs.h.

#define SWIN_WIDGET_MASK   0xF

Definition at line 92 of file addrs.h.

#define SWIN_WIDGETADDR (   addr)    ((addr) & SWIN_SIZEMASK)

Definition at line 100 of file addrs.h.

#define SWIN_WIDGETNUM (   addr)    (((addr) >> SWIN_SIZE_BITS) & SWIN_WIDGET_MASK)

Definition at line 101 of file addrs.h.

#define SYMMON_LOADADDR (   nasid)    TO_NODE(nasid, PHYS_TO_K0(UNIX_DEBUG_LOADADDR - 0x1000))

Definition at line 394 of file addrs.h.

#define SYMMON_STK_ADDR (   nasid,
  slice 
)    TO_NODE_CAC((nasid), SYMMON_STK_OFFSET(nasid, slice))

Definition at line 383 of file addrs.h.

#define SYMMON_STK_END (   nasid)    (SYMMON_STK_ADDR(nasid, 0) + KLD_SYMMON_STK(nasid)->size)

Definition at line 388 of file addrs.h.

#define SYMMON_STK_OFFSET (   nasid,
  slice 
)
Value:
(KLD_SYMMON_STK(nasid)->offset + \
KLD_SYMMON_STK(nasid)->stride * (slice))

Definition at line 378 of file addrs.h.

#define SYMMON_STK_SIZE (   nasid)    KLD_SYMMON_STK(nasid)->stride

Definition at line 386 of file addrs.h.

#define SYMMON_STK_STRIDE (   nasid)    KLD_SYMMON_STK(nasid)->stride

Definition at line 381 of file addrs.h.

#define TO_NODE (   _n,
  _x 
)    (NODE_OFFSET(_n) | ((_x) ))

Definition at line 71 of file addrs.h.

#define TO_NODE_ADDRSPACE (   _pa)    (UINT64_CAST (_pa) & NODE_ADDRSPACE_MASK)

Definition at line 51 of file addrs.h.

#define TO_NODE_CAC (   _n,
  _x 
)    (NODE_CAC_BASE(_n) | ((_x) & TO_PHYS_MASK))

Definition at line 72 of file addrs.h.

#define TO_NODE_HSPEC (   _n,
  _x 
)    (NODE_HSPEC_BASE(_n) | ((_x) & TO_PHYS_MASK))

Definition at line 75 of file addrs.h.

#define TO_NODE_MSPEC (   _n,
  _x 
)    (NODE_MSPEC_BASE(_n) | ((_x) & TO_PHYS_MASK))

Definition at line 74 of file addrs.h.

#define TO_NODE_UNCAC (   _n,
  _x 
)    (NODE_UNCAC_BASE(_n) | ((_x) & TO_PHYS_MASK))

Definition at line 73 of file addrs.h.

#define UALIAS_BASE   HSPEC_BASE

Definition at line 131 of file addrs.h.

#define UALIAS_LIMIT   (UALIAS_BASE + UALIAS_SIZE)

Definition at line 133 of file addrs.h.

#define UALIAS_SIZE   0x10000000 /* 256 Megabytes */

Definition at line 132 of file addrs.h.

#define UINT64_CAST   (unsigned long)

Definition at line 31 of file addrs.h.

#define UNIX_DEBUG_LOADADDR   0x300000

Definition at line 393 of file addrs.h.

#define WIDGETID_GET (   addr)    ((unsigned char)((addr >> SWIN_SIZE_BITS) & 0xff))

Definition at line 81 of file addrs.h.