Ignore:
Timestamp:
2006-12-11T14:14:46Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
134877d
Parents:
b82a13c
Message:

update for Xen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32xen/include/boot/boot.h

    rb82a13c r8cd140f2  
    118118        pfn_t store_mfn;            /**< Shared page (machine page) */
    119119        evtchn_t store_evtchn;      /**< Event channel for store communication */
    120         pfn_t console_mfn;          /**< Console page (machine page) */
    121         evtchn_t console_evtchn;    /**< Event channel for console messages */
     120       
     121        union {
     122        struct {
     123                        pfn_t mfn;          /**< Console page (machine page) */
     124                        evtchn_t evtchn;    /**< Event channel for console messages */
     125        } domU;
     126               
     127        struct {
     128            uint32_t info_off;  /**< Offset of console_info struct */
     129            uint32_t info_size; /**< Size of console_info struct from start */
     130        } dom0;
     131    } console;
     132       
    122133        pte_t *ptl0;                /**< Boot PTL0 (kernel address) */
    123134        uint32_t pt_frames;         /**< Number of bootstrap page table frames */
     
    127138        int8_t cmd_line[GUEST_CMDLINE];
    128139} start_info_t;
     140
     141#define XEN_CONSOLE_VGA         0x03
     142#define XEN_CONSOLE_VESA        0x23
     143
     144typedef struct {
     145    uint8_t video_type; 
     146
     147    union {
     148        struct {
     149            uint16_t font_height;
     150            uint16_t cursor_x;
     151                        uint16_t cursor_y;
     152            uint16_t rows;
     153                        uint16_t columns;
     154        } vga;
     155
     156        struct {
     157            uint16_t width;
     158                        uint16_t height;
     159            uint16_t bytes_per_line;
     160            uint16_t bits_per_pixel;
     161            uint32_t lfb_base;
     162            uint32_t lfb_size;
     163            uint8_t red_pos;
     164                        uint8_t red_size;
     165            uint8_t green_pos;
     166                        uint8_t green_size;
     167            uint8_t blue_pos;
     168                        uint8_t blue_size;
     169            uint8_t rsvd_pos;
     170                        uint8_t rsvd_size;
     171        } vesa_lfb;
     172    } info;
     173} console_info_t;
    129174
    130175typedef struct {
Note: See TracChangeset for help on using the changeset viewer.