Jump to content

APERTURE: Difference between revisions

From EDM2
Created page with "Structure describing attributes of VRAM. == Type == ULONG ulPhysAddr; ULONG ulApertureSize; ULONG ulScanLineSize; RECTL rctlScreen; == C Declarati..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 5: Line 5:
   ULONG    ulScanLineSize;
   ULONG    ulScanLineSize;
   RECTL    rctlScreen;
   RECTL    rctlScreen;
 
 
== C Declaration Method ==
== C Declaration Method ==
typedef struct
typedef struct
Line 14: Line 14:
; ulScanLineSize : Size of a scan line.
; ulScanLineSize : Size of a scan line.
; rctlScreen : Rectangle of screen coordinates.
; rctlScreen : Rectangle of screen coordinates.
== Remarks ==


== Example Code ==
== Example Code ==
<PRE>
<PRE>
typedef struct _APERTURE {
typedef struct _APERTURE {
   ULONG    ulPhysAddr;      /* Physical address of VRAM. */
   ULONG    ulPhysAddr;      /* Physical address of VRAM. */
   ULONG    ulApertureSize;  /* Size of VRAM. */
   ULONG    ulApertureSize;  /* Size of VRAM. */
   ULONG    ulScanLineSize;  /* Size of a scan line. */
   ULONG    ulScanLineSize;  /* Size of a scan line. */
   RECTL    rctlScreen;      /* Rectangle of screen coordinates. */
   RECTL    rctlScreen;      /* Rectangle of screen coordinates. */
} APERTURE;
} APERTURE;


typedef   APERTURE   * PAPERTURE ;
typedef APERTURE *PAPERTURE;
</PRE>
</PRE>


[[Category:Data type]]
[[Category:Data type]]

Latest revision as of 22:44, 3 November 2018

Structure describing attributes of VRAM.

Type

 ULONG     ulPhysAddr;
 ULONG     ulApertureSize;
 ULONG     ulScanLineSize;
 RECTL     rctlScreen;

C Declaration Method

typedef struct

Fields

ulPhysAddr
Physical address of VRAM.
ulApertureSize
Size of VRAM.
ulScanLineSize
Size of a scan line.
rctlScreen
Rectangle of screen coordinates.

Example Code

typedef struct _APERTURE {
  ULONG     ulPhysAddr;      /* Physical address of VRAM. */
  ULONG     ulApertureSize;  /* Size of VRAM. */
  ULONG     ulScanLineSize;  /* Size of a scan line. */
  RECTL     rctlScreen;      /* Rectangle of screen coordinates. */
} APERTURE;

typedef  APERTURE *PAPERTURE;