LIBRARY IBMDEV32
DESCRIPTION '#1 #2 SVGA OS/2 PM Display Driver Library'

STACKSIZE 4096

DATA PRELOAD

SEGMENTS
   _DATA         CLASS 'DATA'               PRELOAD
   _TEXT         CLASS 'CODE'               PRELOAD IOPL CONFORMING
; CURSOR STUFF
  _PtrData32 CLASS 'DATA' SHARED FIXED PRELOAD NONDISCARDABLE
  _PtrCode32 CLASS 'CODE' SHARED FIXED PRELOAD IOPL CONFORMING NONDISCARDABLE
  _CODE16    CLASS 'CODE' SHARED FIXED PRELOAD IOPL CONFORMING NONDISCARDABLE
  _SEAMCODE16 CLASS 'CODE' SHARED FIXED PRELOAD IOPL CONFORMING NONDISCARDABLE

ROBASE = 0x1B6C0000
BASE = 0x139B0000

IMPORTS
    GetDriverInfo                   =PMGRE.37
    private_alloc                    =IBMVGA32.1000
    private_free                     =IBMVGA32.1001
    enter_driver                    =IBMVGA32.1002
    leave_driver                    =IBMVGA32.1003
    save_that_error                 =IBMVGA32.1004
    perform_rip                     =IBMVGA32.1005
    ddc_validate                    =IBMVGA32.1006
    enter_driver_sem                =IBMVGA32.1007
    GetVRAMR0Pointer                =IBMVGA32.1008
    check_bitmap_info               =IBMVGA32.1009
    ring3_CriticalError             =IBMVGA32.1010
    InnerAccumulateBounds           =IBMVGA32.1014
    correlate_for_point_si          =IBMVGA32.1016
    enter_driver_sem_only           =IBMVGA32.1017
    leave_driver_sem_only           =IBMVGA32.1018
    do_sl_corr                      =IBMVGA32.1019
    Bitblt                          =IBMVGA32.1020
    check_sem                       =IBMVGA32.1029
    get_clip_rects                  =IBMVGA32.1031
    ShortlineCorrelate              =IBMVGA32.1032
    far_clip_line                   =IBMVGA32.1033
    ComputeShortlineBounds          =IBMVGA32.1034
    do_bitblt                       =IBMVGA32.1036
    do_exttextout                   =IBMVGA32.1037
    hWinVDD                         =IBMVGA32.1038
    fSeamless                       =IBMVGA32.1039
    do_stretchblt                   =IBMVGA32.1040
    do_drawbits                     =IBMVGA32.1041
    save_that_warning               =IBMVGA32.1042
    DrawImageRect                   =IBMVGA32.1200
    enumerate_clip_rects            =IBMVGA32.1201
    Force_Valid_CP                  =IBMVGA32.1202
    Gre32Entry3                     =PMGRE.63
    Gre32Entry4                     =PMGRE.64
    pVRAMInstance                   =IBMVGA32.2003
    selDeathToUse                   =IBMVGA32.2004
    wDisplay                        =IBMVGA32.2006
    fGrimReaper                     =IBMVGA32.2008
    hVideoVDD                       =IBMVGA32.2009
    bVGAtype                        =IBMVGA32.2010
    ss_height                       =IBMVGA32.2201
    ss_p_frame                      =IBMVGA32.2202
    ss_draw                         =IBMVGA32.2203
    ss_num_chars                    =IBMVGA32.2204
    ss_phases                       =IBMVGA32.2205
    ss_draw_clipped                 =IBMVGA32.2206
    ss_next_scan                    =IBMVGA32.2207
    ss_clip_mask                    =IBMVGA32.2208
    ss_colors                       =IBMVGA32.2209
    yOffScreenScan                  =IBMVGA32.2211
    lnbTotalScreenSize              =IBMVGA32.2213
    pOffScreenUsed                  =IBMVGA32.2214
    nbOffScreenUsed                 =IBMVGA32.2216
    pOffScreenScan                  =IBMVGA32.2217
    DEF_FMIX_LINE                   =IBMVGA32.2220
    DEF_FMIX_CHAR                   =IBMVGA32.2221
    DEF_FMIX_IMAGE                  =IBMVGA32.2222
    DEF_FMIX_PATTERN                =IBMVGA32.2223
    DEF_FMIX_MARKER                 =IBMVGA32.2224
    DEF_BMIX_MARKER                 =IBMVGA32.2225
    DEF_BMIX_LINE                   =IBMVGA32.2226
    DEF_BMIX_IMAGE                  =IBMVGA32.2227
    DEF_BMIX_PATTERN                =IBMVGA32.2228
    DEF_BMIX_CHAR                   =IBMVGA32.2229
    DEF_LINE_TYPE                   =IBMVGA32.2230
    DEF_LINE_MASK                   =IBMVGA32.2231
    DEF_LINE_ERROR                  =IBMVGA32.2232
    DEF_FONT_FS_FLAGS               =IBMVGA32.2233
    DEF_FB_IMAGE                    =IBMVGA32.2234
    DEF_FB_PATTERN                  =IBMVGA32.2235
    DEF_FB_MARKER                   =IBMVGA32.2236
    DEF_FB_LINE                     =IBMVGA32.2237
    DEF_FB_CHAR                     =IBMVGA32.2238
    DEF_LOG_FORE_CLR                =IBMVGA32.2239
    DEF_LOG_BACK_CLR                =IBMVGA32.2240
    DEF_PATTERN_FS_FLAGS            =IBMVGA32.2241
    DEF_PATTERN_FB_FLAGS            =IBMVGA32.2242
    DEF_PATTERN_CODE_POINT          =IBMVGA32.2243
    DEF_MARKER_CODE_POINT           =IBMVGA32.2244
    DEF_MARKER_FS_FLAGS             =IBMVGA32.2245
    DEF_MARKER_FB_FLAGS             =IBMVGA32.2246
    apfnOurDispatch                 =IBMVGA32.2247
    Vga32Callback                   =IBMVGA32.2248
    SM_WINDRV                       =IBMVGA32.2249
    default_vio_cpid                =IBMVGA32.2250
    wSVGAtype                       =IBMVGA32.2251

    Vio32SetState                   =IBMVGA32.3000
    Vio32SetMode                    =IBMVGA32.3001
    pdcGlobal                       =IBMVGA32.3002
EXPORTS
    init_hw_regs                    @4000
    OEMBitblt                       @4001
    bmc_int_to_ext                  @4002
    bmc_ext_to_int                  @4003
    rgb_to_ipc                      @4004
    fill_pattern_empty_bits         @4005
    synthesize_mono_bits            @4008
    ColorConvert                    @4009
    rotate_brush                    @4010
    physical_enable                 @4011
    physical_disable                @4012
    device_specific_init            @4013
    device_specific_post_init       @4014
    synthesize_xparent_mask         @4015
    synthesize_color_bits           @4016
    copy_bits_to_pattern            @4017
    OEMStretchBlt                   @4020
    OEMDrawBits                     @4021
    InitTonysBarNGrill              @4022
    PolyShortLine                   @4023
    ExtTextOut                      @4024
    abc_extent                      @4025
    SaveScreenBits                  @4026
    worst_case_ext                  @4027
    PolyScanline                    @4028
    do_polylines                    @4029
    RestoreScreenBits               @4030
    polyline_workhorse_routine      @4031
    polyline_init                   @4032
    polyline_background_init        @4033
    Pixel                           @4034
    ipc_to_index                    @4035
    enum_dispatch                   @4036
    far_exclude                     @4037
    far_unexclude                   @4038
    SetColorCursor                  @4039
    DeviceSetCursor                 @4040
    SetScreenBusy                   @4041
    InnerCheckCursor                @4042
    dither_brush                    @4043
    CharRect                        @4200
    CharStr                         @4201
    DeviceSetAVIOFont2              @4202
    InterpretAttributes             @4203
    ScrollRect                      @4204
    UpdateCursor                    @4205
    DeviceSeamlessInit              @4206
    abBasePatterns                  @5003   NONAME
    adDitherPatterns                @5004   NONAME
    ddcInit                         @5012   NONAME
    rddcInit                        @5014   NONAME
    sdScreen                        @5015   NONAME
    gsspScreen                      @5016   NONAME
    cResource                       @5017   NONAME
    defFontChar                     @5018   NONAME
    pbmcDev                         @5019   NONAME
    pbmcMono                        @5020   NONAME
    pbmcColor                       @5021   NONAME
    cDevVioCells                    @5022   NONAME
    adDevVioCells                   @5023   NONAME
    adDevCapsData                   @5024   NONAME
    sdIC                            @5025   NONAME
    padBitmapFormats                @5026   NONAME
    COUNT_DEV_CAPS_DATA             @5027   NONAME
    aipcLookup                      @5028   NONAME
    DEVCAPS_COLORS                  @5030   NONAME
    DEF_IPC_FORE_CLR                @5031   NONAME
    SCREEN_CX                       @5032   NONAME
    SCREEN_CY                       @5033   NONAME
    DEF_IPC_BACK_CLR                @5034   NONAME
    DEVCAPS_VERTICAL_RESOLUTION     @5035   NONAME
    DEF_LINE_STEP_X                 @5036   NONAME
    DEF_LINE_STEP_Y                 @5037   NONAME
    DEVCAPS_HORIZONTAL_RESOLUTION   @5038   NONAME
    SCREEN_CBSCAN                   @5039   NONAME
    SCREEN_DSCAN                    @5040   NONAME
    MCDevice                        @5041   NONAME
    SCREEN_SDFB                     @5042   NONAME
    IC_SDFB                         @5043   NONAME
    apfnDevDefDispatch              @5044   NONAME
    tblDevHooks                     @5045   NONAME
    fbShadowFlags                   @5047   NONAME
    fControllerOwned                @5048   NONAME
    fControllerNotify               @5049   NONAME
    fVDMControllerMine              @5050   NONAME
    fControllerMine                 @5051   NONAME
    fbOffScreen                     @5052   NONAME
    SM_PMDISP_ADDRESSES             @5053   NONAME
    drqVideo                        @5054   NONAME
    SM_SETSIZE                      @5055   NONAME
    CellBLTBlock                    @5200   NONAME
    alloc_brush                     @5201   NONAME
    free_brush                      @5202   NONAME
    copy_brush                      @5203   NONAME
;PALMGR2
    eddc_QueryRealColors            @5300
    eddc_QueryColorIndex            @5301
    eddc_QueryNearestColor          @5302
    eddc_QueryColorData             @5303
    eddc_UnrealizeColorTable        @5304
    eddc_RealizeColorTable          @5305
    deselect_lct                    @5306
    eddc_QueryLogColorTable         @5307
    save_lct                        @5308
    eddc_QueryRGBColor              @5309
    CreateLogColorTable             @5310
    PropagateSysColorChanges        @5311
    MakeColorsValid                 @5312
    MakeBrushValid                  @5313
    MakePassedColorsValid           @5314
    device_enter_driver             @5315
    eddc_ResetLogColorTable         @5316
;PALMGR2 END
;DCR96
    set_bank_select                 @6000
    QueryApertureInfo               @6001

PROTMODE
