当前位置: 首页 > news >正文

创建网站的三种方法如何建立公司网站推广

创建网站的三种方法,如何建立公司网站推广,天空台108网站找手工活带回家做,网站域名解析教程最近工作需要在 UEFI Shell 下Check EC Ram 的设定#xff0c;发现手上只有 Windows 下的读取工具(RW Everything)。于是研究了一下如何在Shell 读取 EC Ram。根据【参考1】读取的流程如下#xff1a;Port 66 CommandsThere are also some EC commands that use ports 0x66 …最近工作需要在 UEFI  Shell 下Check EC Ram 的设定发现手上只有 Windows 下的读取工具(RW Everything)。于是研究了一下如何在Shell 读取 EC Ram。根据【参考1】读取的流程如下Port 66 CommandsThere are also some EC commands that use ports 0x66 and0x62. Some of these are standard ACPI commands as defined in the external ACPIspec, others are custom.The port 66 protocol is essentially the standard ACPI ECinterface protocol.1. Wait for port66.IBF 02. Write command byte to port 66.3. For each outgoing data or address byte:3a. Wait for port66.IBF 03b. Write data or address byte to port 62.4. For each incoming data byte:4a. Wait for port66.OBF 14b. Read data byte from port 62.5. If the command requires no data or address bytes, you candetermine when the command was accepted/executed by waiting for port66.IBF0.同时 ACPI 定义的通用 Command如下ACPI-defined port 66 commands0x80 Read EC (write 0x80 to port 66, write address byte toport 62, read data byte from port 62)0x81 Write EC (write 0x81 to port 66, write address byte toport 62, write data byte to port 62)0x82 Burst Enable (write 0x82 to port 66, read data bytefrom port 62 - the data byte is burst ACK, value 0x90)0x83 Burst Disable (write 0x83 to port 66, wait forport66.IBF0)0x84 Query EC (i.e. read SCI event queue) (write 0x84 toport 66, read data byte from port 62). When the data byte is 0, it means thatthe SCI event queue is empty.最终根据上述资料编写一个 Application 如下#include #include #include #include extern EFI_SYSTEM_TABLE *gST;extern EFI_BOOT_SERVICES *gBS;#define TIMEOUT 0xFFFF#define ECCOMMAND 0x66#define ECSTATUS 0x66#define ECDATA 0x62#define EC_S_OBF BIT0#define EC_S_IBF BIT1#define ECREADCMD 0x80UINT8 MemBuffer[16][16];void WaitIBF() {UINT32 Status;UINTN Count;Count 0;Status 0;Status IoRead8 (ECSTATUS);while (((Status EC_S_IBF) ! 0)||(CountTIMEOUT)) {Status IoRead8 (ECSTATUS);Count;}}void WaitOBF() {UINT32 Status;UINTN Count;Count 0;Status 0;Status IoRead8 (ECSTATUS);while (((Status EC_S_OBF) 0)||(CountTIMEOUT)) {Status IoRead8 (ECSTATUS);Count;}}UINT8 ReadECRam(UINT8 Index) {WaitIBF(); //1IoWrite8(ECCOMMAND,0x80);//2WaitIBF(); //3aIoWrite8(ECDATA, Index); //3bWaitOBF(); //4areturn IoRead8(ECDATA); //4b}void GetData(){UINT8 i,j;for (i0;i16;i)for (j0;j16;j) {MemBuffer[i][j]ReadECRam(i*16j);}}void ShowData(){UINT8 i,j;Print(L );for (i0;i16;i) Print(L%02X ,i);Print(L\n);for (i0;i16;i) {Print(L%02X: ,i);for (j0;j16;j) {Print(L%02X ,MemBuffer[i][j]);}Print(L\n);}Print(L\n);}/***Print a welcoming message.Establishes the main structure of the application.retval 0 The application exited normally.retval Other An error occurred.***/INTNEFIAPIShellAppMain (IN UINTN Argc,IN CHAR16 **Argv){EFI_INPUT_KEY Key;Key.ScanCodeSCAN_NULL;while (SCAN_UP!Key.ScanCode){gST-ConOut-ClearScreen(gST-ConOut);GetData();ShowData();gST - ConIn - ReadKeyStroke(gST-ConIn,Key);Print(LPress Arrow-Up to exit\n);gBS-Stall(1000000UL);}return(0);}在实体机上运行结果如下(按向上键退出)源代码和Application(X64)下载参考1. http://wiki.laptop.org/go/Ec_specification
http://www.zqtcl.cn/news/312624/

相关文章:

  • 中国十大网站域名界面设计最好的网站
  • 苍山做网站北京便宜网站建设
  • 广州公司网站制作招聘信息汕头网站推广哪家好
  • 登录建设官方网站品牌营销专家
  • 天津模板建站哪家好wordpress标题换行显示不全
  • 杭州房地产网站建设网站建设开发公司推荐指数
  • 建设部网站上怎样查询企业业绩做淘宝联盟网站要多少钱
  • 宣武上海网站建设网站导购话术
  • 天津北京网站建设公司大网站建设公司
  • 网站需要在哪些方面备案百度云建网站
  • 西安手机网站定制网站建设西安网站注册
  • 怎么做秒赞网站企业自己建设的营销网络
  • 一般网站建设需求有哪些wordpress脚注更改
  • 海报设计在线生成免费网站排名优化方案
  • 网站开发综合设计报告怎么制作浏览器网页
  • 做网站打广告青岛网站营销推广
  • 网站建设中首页模板本科 网站建设的基础教程
  • 推广网站优化seo教程上排名抖音营销
  • 创业园区网站建设wordpress对接公众号源码
  • 怎么设计公司的网站长沙seo结算
  • 参加网站建设项目人员保障体系镇江网站建设门户报价
  • 漯河网站优化景区网站建设方案
  • 辽宁智能网站建设价位wordpress 公司主题
  • zencart 网站入侵冲电气软件 网站建设
  • 在网上做黑彩网站会怎样wordpress自定义代码在哪里设置
  • 福州营销网站建设老品牌网站开通
  • 电子商务网站体系结构有哪些?网站开发规划书怎么写
  • 建设一个网站要多少钱建设银行信用卡卡网站首页
  • 百度推广效果怎样seo网上培训课程
  • 广州品牌网站建设 优美wordpress 跳转页面