亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? smbios.c

?? xen 3.2.2 源碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
    p->header.type = 0;    p->header.length = sizeof(struct smbios_type_0);    p->header.handle = 0;        p->vendor_str = 1;    p->version_str = 2;    p->starting_address_segment = 0xe800;    p->release_date_str = 0;    p->rom_size = 0;        memset(p->characteristics, 0, 8);    p->characteristics[7] = 0x08; /* BIOS characteristics not supported */    p->characteristics_extension_bytes[0] = 0;    p->characteristics_extension_bytes[1] = 0;        p->major_release = (uint8_t) xen_major_version;    p->minor_release = (uint8_t) xen_minor_version;    p->embedded_controller_major = 0xff;    p->embedded_controller_minor = 0xff;    start += sizeof(struct smbios_type_0);    strcpy((char *)start, "Xen");    start += strlen("Xen") + 1;    strcpy((char *)start, xen_version);    start += strlen(xen_version) + 1;    *((uint8_t *)start) = 0;    return start + 1;}/* Type 1 -- System Information */static void *smbios_type_1_init(void *start, const char *xen_version,                    uint8_t uuid[16]){    char uuid_str[37];    struct smbios_type_1 *p = (struct smbios_type_1 *)start;    p->header.type = 1;    p->header.length = sizeof(struct smbios_type_1);    p->header.handle = 0x100;    p->manufacturer_str = 1;    p->product_name_str = 2;    p->version_str = 3;    p->serial_number_str = 4;        memcpy(p->uuid, uuid, 16);    p->wake_up_type = 0x06; /* power switch */    p->sku_str = 0;    p->family_str = 0;    start += sizeof(struct smbios_type_1);        strcpy((char *)start, "Xen");    start += strlen("Xen") + 1;    strcpy((char *)start, "HVM domU");    start += strlen("HVM domU") + 1;    strcpy((char *)start, xen_version);    start += strlen(xen_version) + 1;    uuid_to_string(uuid_str, uuid);     strcpy((char *)start, uuid_str);    start += strlen(uuid_str) + 1;    *((uint8_t *)start) = 0;        return start+1; }/* Type 3 -- System Enclosure */static void *smbios_type_3_init(void *start){    struct smbios_type_3 *p = (struct smbios_type_3 *)start;        p->header.type = 3;    p->header.length = sizeof(struct smbios_type_3);    p->header.handle = 0x300;    p->manufacturer_str = 1;    p->type = 0x01; /* other */    p->version_str = 0;    p->serial_number_str = 0;    p->asset_tag_str = 0;    p->boot_up_state = 0x03; /* safe */    p->power_supply_state = 0x03; /* safe */    p->thermal_state = 0x03; /* safe */    p->security_status = 0x02; /* unknown */    start += sizeof(struct smbios_type_3);        strcpy((char *)start, "Xen");    start += strlen("Xen") + 1;    *((uint8_t *)start) = 0;    return start+1;}/* Type 4 -- Processor Information */static void *smbios_type_4_init(void *start, unsigned int cpu_number, char *cpu_manufacturer){    char buf[80];     struct smbios_type_4 *p = (struct smbios_type_4 *)start;    uint32_t eax, ebx, ecx, edx;    p->header.type = 4;    p->header.length = sizeof(struct smbios_type_4);    p->header.handle = 0x400 + cpu_number;    p->socket_designation_str = 1;    p->processor_type = 0x03; /* CPU */    p->processor_family = 0x01; /* other */    p->manufacturer_str = 2;    cpuid(1, &eax, &ebx, &ecx, &edx);    p->cpuid[0] = eax;    p->cpuid[1] = edx;    p->version_str = 0;    p->voltage = 0;    p->external_clock = 0;    p->max_speed = 0; /* unknown */    p->current_speed = 0; /* unknown */    p->status = 0x41; /* socket populated, CPU enabled */    p->upgrade = 0x01; /* other */    start += sizeof(struct smbios_type_4);    strncpy(buf, "CPU ", sizeof(buf));    if ( (sizeof(buf) - strlen("CPU ")) >= 3 )        itoa(buf + strlen("CPU "), cpu_number);    strcpy((char *)start, buf);    start += strlen(buf) + 1;    strcpy((char *)start, cpu_manufacturer);    start += strlen(cpu_manufacturer) + 1;    *((uint8_t *)start) = 0;    return start+1;}/* Type 16 -- Physical Memory Array */static void *smbios_type_16_init(void *start, uint32_t memsize){    struct smbios_type_16 *p = (struct smbios_type_16*)start;    p->header.type = 16;    p->header.handle = 0x1000;    p->header.length = sizeof(struct smbios_type_16);        p->location = 0x01; /* other */    p->use = 0x03; /* system memory */    p->error_correction = 0x01; /* other */    p->maximum_capacity = memsize * 1024;    p->memory_error_information_handle = 0xfffe; /* none provided */    p->number_of_memory_devices = 1;    start += sizeof(struct smbios_type_16);    *((uint16_t *)start) = 0;    return start + 2;}/* Type 17 -- Memory Device */static void *smbios_type_17_init(void *start, uint32_t memory_size_mb){    struct smbios_type_17 *p = (struct smbios_type_17 *)start;        p->header.type = 17;    p->header.length = sizeof(struct smbios_type_17);    p->header.handle = 0x1100;    p->physical_memory_array_handle = 0x1000;    p->total_width = 64;    p->data_width = 64;    /* truncate memory_size_mb to 16 bits and clear most significant       bit [indicates size in MB] */    p->size = (uint16_t) memory_size_mb & 0x7fff;    p->form_factor = 0x09; /* DIMM */    p->device_set = 0;    p->device_locator_str = 1;    p->bank_locator_str = 0;    p->memory_type = 0x07; /* RAM */    p->type_detail = 0;    start += sizeof(struct smbios_type_17);    strcpy((char *)start, "DIMM 1");    start += strlen("DIMM 1") + 1;    *((uint8_t *)start) = 0;    return start+1;}/* Type 19 -- Memory Array Mapped Address */static void *smbios_type_19_init(void *start, uint32_t memory_size_mb){    struct smbios_type_19 *p = (struct smbios_type_19 *)start;        p->header.type = 19;    p->header.length = sizeof(struct smbios_type_19);    p->header.handle = 0x1300;    p->starting_address = 0;    p->ending_address = (memory_size_mb-1) * 1024;    p->memory_array_handle = 0x1000;    p->partition_width = 1;    start += sizeof(struct smbios_type_19);    *((uint16_t *)start) = 0;    return start + 2;}/* Type 20 -- Memory Device Mapped Address */static void *smbios_type_20_init(void *start, uint32_t memory_size_mb){    struct smbios_type_20 *p = (struct smbios_type_20 *)start;    p->header.type = 20;    p->header.length = sizeof(struct smbios_type_20);    p->header.handle = 0x1400;    p->starting_address = 0;    p->ending_address = (memory_size_mb-1)*1024;    p->memory_device_handle = 0x1100;    p->memory_array_mapped_address_handle = 0x1300;    p->partition_row_position = 1;    p->interleave_position = 0;    p->interleaved_data_depth = 0;    start += sizeof(struct smbios_type_20);    *((uint16_t *)start) = 0;    return start+2;}/* Type 32 -- System Boot Information */static void *smbios_type_32_init(void *start){    struct smbios_type_32 *p = (struct smbios_type_32 *)start;    p->header.type = 32;    p->header.length = sizeof(struct smbios_type_32);    p->header.handle = 0x2000;    memset(p->reserved, 0, 6);    p->boot_status = 0; /* no errors detected */        start += sizeof(struct smbios_type_32);    *((uint16_t *)start) = 0;    return start+2;}/* Type 127 -- End of Table */static void *smbios_type_127_init(void *start){    struct smbios_type_127 *p = (struct smbios_type_127 *)start;    p->header.type = 127;    p->header.length = sizeof(struct smbios_type_127);    p->header.handle = 0x7f00;    start += sizeof(struct smbios_type_127);    *((uint16_t *)start) = 0;    return start + 2;}/* * Local variables: * mode: C * c-set-style: "BSD" * c-basic-offset: 4 * tab-width: 4 * indent-tabs-mode: nil * End: */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩夫妻久久| 国产一区999| 欧美熟乱第一页| 亚洲国产中文字幕| 欧美二区乱c少妇| 精品一区二区三区日韩| 久久久不卡网国产精品二区| 国产成人综合在线播放| 国产精品国产精品国产专区不片| 懂色av一区二区夜夜嗨| 亚洲视频一区在线观看| 欧美性受极品xxxx喷水| 日本不卡一区二区| 久久综合色综合88| 99精品欧美一区二区蜜桃免费| 亚洲国产视频一区二区| 欧美成人一区二区| 欧美日韩aaa| 韩国理伦片一区二区三区在线播放| 国产欧美一区二区精品仙草咪| www.在线欧美| 亚洲成av人片观看| 久久久久久97三级| 欧美艳星brazzers| 国产精品一区二区免费不卡| 亚洲色图在线视频| 精品日韩一区二区| 色成年激情久久综合| 老司机免费视频一区二区三区| 亚洲国产成人午夜在线一区| 欧美日韩日本视频| 成人免费高清视频| 天天色综合成人网| 综合分类小说区另类春色亚洲小说欧美| 欧美日韩激情一区| 99久久亚洲一区二区三区青草 | 丁香啪啪综合成人亚洲小说 | 国产人妖乱国产精品人妖| 欧美综合一区二区三区| 精品亚洲欧美一区| 一区二区不卡在线视频 午夜欧美不卡在| 91精品国产高清一区二区三区| 成人做爰69片免费看网站| 日韩不卡一区二区三区| 一区二区三区欧美亚洲| 久久综合色婷婷| 日韩一区二区在线观看| 在线观看视频91| 成人app在线| 国产一区二区三区| 青青草伊人久久| 性做久久久久久久免费看| 综合久久久久综合| 国产精品久久免费看| 久久久精品影视| 久久亚洲综合色一区二区三区| 欧美日韩不卡一区二区| 欧美亚洲一区三区| 一本大道久久精品懂色aⅴ| 丰满亚洲少妇av| 国产成人免费在线视频| 韩国成人精品a∨在线观看| 免费三级欧美电影| 蜜臀av一区二区| 日韩精品视频网| 水蜜桃久久夜色精品一区的特点| 亚洲欧美日韩系列| 一区在线播放视频| 国产精品麻豆欧美日韩ww| 国产日韩v精品一区二区| 久久这里都是精品| 久久久精品国产免大香伊| 精品国产sm最大网站免费看| 欧美精品一区二区蜜臀亚洲| 欧美成人综合网站| 久久女同互慰一区二区三区| 久久看人人爽人人| 国产精品入口麻豆九色| 中文字幕永久在线不卡| 国产精品色呦呦| 国产精品久久久久久户外露出 | 日韩欧美123| 日韩欧美精品在线视频| 欧美成人精品1314www| 精品国产免费视频| 国产日韩欧美精品综合| 中文字幕视频一区| 樱桃视频在线观看一区| 日韩电影一区二区三区四区| 蜜臀av国产精品久久久久| 激情成人午夜视频| 国产成人精品亚洲777人妖| 99精品视频在线免费观看| 色婷婷综合久色| 制服丝袜日韩国产| 久久久电影一区二区三区| 中文字幕一区二区视频| 亚洲夂夂婷婷色拍ww47| 秋霞成人午夜伦在线观看| 国产精品一区不卡| 91色九色蝌蚪| 欧美一级日韩免费不卡| 久久久久久久久久久99999| 亚洲人成网站在线| 日韩精品国产精品| 国产sm精品调教视频网站| 日本精品免费观看高清观看| 日韩美一区二区三区| 中文字幕人成不卡一区| 日韩中文字幕91| 福利电影一区二区三区| 欧美精三区欧美精三区| 国产人成一区二区三区影院| 一区二区视频免费在线观看| 美女爽到高潮91| 91在线视频免费91| 日韩欧美亚洲一区二区| 亚洲视频 欧洲视频| 精品中文字幕一区二区| 91免费版pro下载短视频| 日韩精品一区二区三区swag | av在线不卡网| 欧美一级二级三级蜜桃| 中文字幕欧美一| 国内国产精品久久| 欧美午夜一区二区| 国产清纯美女被跳蛋高潮一区二区久久w | 国产福利精品导航| 欧美精品日韩综合在线| 国产精品久久久久桃色tv| 美女被吸乳得到大胸91| 91黄色小视频| 国产精品国产三级国产| 久久99精品网久久| 欧美精品第1页| 亚洲图片另类小说| 国产成人啪午夜精品网站男同| 日韩一区二区电影在线| 亚洲一区二区三区四区中文字幕| 成人av一区二区三区| 精品福利一区二区三区| 毛片一区二区三区| 欧美美女bb生活片| 一级女性全黄久久生活片免费| 风间由美一区二区三区在线观看| 欧美不卡一区二区三区四区| 亚洲丶国产丶欧美一区二区三区| av一区二区三区黑人| 欧美国产97人人爽人人喊| 极品尤物av久久免费看| 日韩精品专区在线| 日本va欧美va精品发布| 91精品国产综合久久福利| 亚洲网友自拍偷拍| 欧美三级三级三级爽爽爽| 亚洲人成网站精品片在线观看| 国产suv精品一区二区三区| 国产欧美一区二区在线| 国产麻豆视频一区| 国产欧美日韩三级| 成人综合激情网| 国产精品国产精品国产专区不蜜 | 国内外精品视频| 日韩精品一区二区三区中文不卡| 欧美aⅴ一区二区三区视频| 6080国产精品一区二区| 日韩精品一二三四| 欧美一级艳片视频免费观看| 麻豆91在线播放免费| 久久综合色鬼综合色| 懂色av中文字幕一区二区三区| 中文字幕乱码日本亚洲一区二区| 不卡视频一二三| 亚洲免费av网站| 欧美日本一道本| 蜜桃av噜噜一区二区三区小说| 精品成人私密视频| 国产91丝袜在线播放| 最新国产成人在线观看| 欧美综合欧美视频| 免费成人美女在线观看.| 精品黑人一区二区三区久久| 国产99一区视频免费| 日韩毛片在线免费观看| 欧美这里有精品| 免费观看在线色综合| 中文在线一区二区| 一本一道久久a久久精品综合蜜臀 一本一道综合狠狠老 | 99视频在线精品| 亚洲一二三区在线观看| 制服丝袜日韩国产| 国产91丝袜在线18| 一区二区免费在线播放| 日韩欧美在线一区二区三区| 国产精品18久久久| 亚洲第一二三四区| 国产三级精品视频| 欧美视频一区二区三区在线观看| 成人免费看黄yyy456| 午夜一区二区三区视频|