本文整理汇总了C++中pc_keyboard_init函数的典型用法代码示例。如果您正苦于以下问题:C++ pc_keyboard_init函数的具体用法?C++ pc_keyboard_init怎么用?C++ pc_keyboard_init使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pc_keyboard_init函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: mainboard_init
static void mainboard_init(device_t dev)
{
/* This sneaked in here, because X200 SuperIO chip isn't really
connected to anything and hence we don't init it.
*/
pc_keyboard_init();
}
开发者ID:tidatida,项目名称:coreboot,代码行数:7,代码来源:mainboard.c
示例2: lpc47n227_init
//----------------------------------------------------------------------------------
// Function: lpc47n227_init
// Parameters: dev - pointer to structure describing a Super I/O device
// Return Value: None
// Description: Initialize the specified Super I/O device.
// Devices other than COM ports and keyboard controller are ignored.
// For COM ports, we configure the baud rate.
//
static void lpc47n227_init(device_t dev)
{
struct superio_smsc_lpc47n227_config *conf = dev->chip_info;
struct resource *res0;
if (!dev->enabled)
return;
switch (dev->path.pnp.device) {
case LPC47N227_SP1:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com1);
break;
case LPC47N227_SP2:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com2);
break;
case LPC47N227_KBDC:
printk(BIOS_DEBUG, "LPC47N227: Initializing keyboard.\n");
pc_keyboard_init(&conf->keyboard);
break;
}
}
开发者ID:kelsieflynn,项目名称:coreboot-1,代码行数:33,代码来源:superio.c
示例3: init
static void init(struct device *dev)
{
u8 reg8;
if (!dev->enabled)
return;
switch(dev->path.pnp.device) {
case PC97307_KBCK:
pnp_set_logical_device(dev);
pnp_set_enable(dev, 0); /* Disable keyboard */
pnp_write_config(dev, 0xf0, 0x40); /* Set KBC clock to 8 MHz. */
pnp_set_enable(dev, 1); /* Enable keyboard. */
pc_keyboard_init();
break;
case PC97307_FDC:
/* Set up floppy in PS/2 mode. */
outb(0x09, SIO_CONFIG_RA);
reg8 = inb(SIO_CONFIG_RD);
reg8 = (reg8 & 0x3F) | 0x40;
outb(reg8, SIO_CONFIG_RD);
outb(reg8, SIO_CONFIG_RD); /* Have to write twice to change! */
break;
default:
break;
}
}
开发者ID:kmalkki,项目名称:coreboot,代码行数:27,代码来源:superio.c
示例4: qemu_nb_init
static void qemu_nb_init(device_t dev)
{
/* Map memory at 0xc0000 - 0xfffff */
int i;
uint8_t v = pci_read_config8(dev, Q35_PAM0);
v |= 0x30;
pci_write_config8(dev, Q35_PAM0, v);
pci_write_config8(dev, Q35_PAM0 + 1, 0x33);
pci_write_config8(dev, Q35_PAM0 + 2, 0x33);
pci_write_config8(dev, Q35_PAM0 + 3, 0x33);
pci_write_config8(dev, Q35_PAM0 + 4, 0x33);
pci_write_config8(dev, Q35_PAM0 + 5, 0x33);
pci_write_config8(dev, Q35_PAM0 + 6, 0x33);
/* This sneaked in here, because Qemu does not
* emulate a SuperIO chip
*/
pc_keyboard_init(NO_AUX_DEVICE);
/* setup IRQ routing for pci slots */
for (i = 0; i < 25; i++)
pci_assign_irqs(0, i, qemu_q35_irqs + (i % 4));
/* setup IRQ routing southbridge devices */
for (i = 25; i < 32; i++)
pci_assign_irqs(0, i, qemu_q35_irqs);
}
开发者ID:AdriDlu,项目名称:coreboot,代码行数:26,代码来源:mainboard.c
示例5: mainboard_init
static void mainboard_init(device_t dev)
{
RCBA32(0x38c8) = 0x00002005;
RCBA32(0x38c4) = 0x00802005;
RCBA32(0x38c0) = 0x00000007;
/* FIXME: trim this down or remove if necessary */
{
int i;
const u8 dmp[256] = {
/* 00 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 10 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 20 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 30 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 40 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 50 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 60 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 70 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 80 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 90 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* a0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* b0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* c0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* d0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* e0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* f0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
printk(BIOS_DEBUG, "Replaying EC dump ...");
for (i = 0; i < 256; i++)
ec_write (i, dmp[i]);
printk(BIOS_DEBUG, "done\n");
}
pc_keyboard_init();
}
开发者ID:theracermaster,项目名称:coreboot_mainboard_acer_aspire-e1-571,代码行数:34,代码来源:mainboard.c
示例6: it8712f_init
static void it8712f_init(device_t dev)
{
struct superio_ite_it8712f_config *conf = dev->chip_info;
if (!dev->enabled)
return;
switch (dev->path.pnp.device) {
case IT8712F_FDC: /* TODO. */
break;
case IT8712F_PP: /* TODO. */
break;
case IT8712F_EC: /* TODO. */
break;
case IT8712F_KBCK:
set_kbc_ps2_mode();
pc_keyboard_init(&conf->keyboard);
break;
case IT8712F_KBCM: /* TODO. */
break;
case IT8712F_MIDI: /* TODO. */
break;
case IT8712F_GAME: /* TODO. */
break;
case IT8712F_IR: /* TODO. */
break;
}
}
开发者ID:bolyboly,项目名称:coreboot,代码行数:28,代码来源:superio.c
示例7: init
static void init(device_t dev)
{
struct superio_nsc_pc87427_config *conf;
struct resource *res0, *res1;
/* Wishlist handle well known programming interfaces more
* generically.
*/
if (!dev->enabled) {
return;
}
conf = dev->chip_info;
switch(dev->path.pnp.device) {
case PC87427_SP1:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com1);
break;
case PC87427_SP2:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com2);
break;
case PC87427_KBCK:
res0 = find_resource(dev, PNP_IDX_IO0);
res1 = find_resource(dev, PNP_IDX_IO1);
pc_keyboard_init(&conf->keyboard);
break;
}
}
开发者ID:kelsieflynn,项目名称:coreboot-1,代码行数:27,代码来源:superio.c
示例8: it8712f_init
static void it8712f_init(struct device *dev)
{
if (!dev->enabled)
return;
switch (dev->path.pnp.device) {
case IT8712F_FDC: /* TODO. */
break;
case IT8712F_PP: /* TODO. */
break;
case IT8712F_EC: /* TODO. */
break;
case IT8712F_KBCK:
set_kbc_ps2_mode();
pc_keyboard_init();
break;
case IT8712F_KBCM: /* TODO. */
break;
case IT8712F_MIDI: /* TODO. */
break;
case IT8712F_GAME: /* TODO. */
break;
case IT8712F_IR: /* TODO. */
break;
}
}
开发者ID:kmalkki,项目名称:coreboot,代码行数:27,代码来源:superio.c
示例9: init
static void init(device_t dev)
{
struct superio_smsc_fdc37m60x_config *conf;
struct resource *res0, *res1;
if (!dev->enabled) {
return;
}
conf = dev->chip_info;
switch (dev->path.pnp.device) {
case FDC37M60X_FDC: /* TODO. */
break;
case FDC37M60X_PP: /* TODO. */
break;
case FDC37M60X_SP1:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com1);
break;
case FDC37M60X_SP2:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com2);
break;
case FDC37M60X_KBCK:
res0 = find_resource(dev, PNP_IDX_IO0);
res1 = find_resource(dev, PNP_IDX_IO1);
pc_keyboard_init(&conf->keyboard);
break;
case FDC37M60X_AUX: /* TODO. */
break;
}
}
开发者ID:kelsieflynn,项目名称:coreboot-1,代码行数:33,代码来源:superio.c
示例10: wilco_ec_init
static void wilco_ec_init(struct device *dev)
{
if (!dev->enabled)
return;
/* Disable S0ix support in EC RAM with ACPI EC interface */
if (!acpi_is_wakeup_s3()) {
ec_set_ports(CONFIG_EC_BASE_ACPI_COMMAND,
CONFIG_EC_BASE_ACPI_DATA);
ec_write(EC_RAM_S0IX_SUPPORT, 0);
}
/* Print EC firmware information */
wilco_ec_print_all_info();
/* Initialize keyboard, ignore emulated PS/2 mouse */
pc_keyboard_init(NO_AUX_DEVICE);
/* Direct power button to the host for processing */
wilco_ec_send(KB_POWER_BUTTON_TO_HOST, 1);
/* Unmute speakers */
wilco_ec_send(KB_HW_MUTE_CONTROL, AUDIO_UNMUTE_125MS);
/* Enable WiFi radio */
wilco_ec_radio_control(RADIO_WIFI, 1);
/* Turn on camera power */
wilco_ec_send(KB_CAMERA, CAMERA_ON);
}
开发者ID:canistation,项目名称:coreboot,代码行数:30,代码来源:chip.c
示例11: lpc_ec_init
static void lpc_ec_init(struct device *dev)
{
if (!dev->enabled)
return;
pc_keyboard_init(NO_AUX_DEVICE);
google_chromeec_init();
}
开发者ID:AdriDlu,项目名称:coreboot,代码行数:8,代码来源:ec_lpc.c
示例12: it8518_init
static void it8518_init(struct device *dev)
{
if (!dev->enabled)
return;
printk(BIOS_DEBUG, "Quanta IT8518: Initializing keyboard.\n");
pc_keyboard_init();
}
开发者ID:kmalkki,项目名称:coreboot,代码行数:8,代码来源:ec.c
示例13: lpc_ec_init
static void lpc_ec_init(device_t dev)
{
if (!dev->enabled)
return;
pc_keyboard_init();
google_chromeec_init();
}
开发者ID:0ida,项目名称:coreboot,代码行数:8,代码来源:ec_lpc.c
示例14: ene932_init
static void ene932_init(struct device *dev)
{
if (!dev->enabled)
return;
printk(BIOS_DEBUG, "Compal ENE932: Initializing keyboard.\n");
pc_keyboard_init();
}
开发者ID:killbug2004,项目名称:coreboot,代码行数:9,代码来源:ec.c
示例15: ene_kb3940q_init
static void ene_kb3940q_init(struct device *dev)
{
if (!dev->enabled)
return;
printk(BIOS_DEBUG, "Quanta EnE KB3940Q: Initializing keyboard.\n");
pc_keyboard_init(NO_AUX_DEVICE);
ene_kb3940q_log_events();
}
开发者ID:canistation,项目名称:coreboot,代码行数:10,代码来源:ec.c
示例16: it8772f_init
static void it8772f_init(device_t dev)
{
struct superio_ite_it8772f_config *conf = dev->chip_info;
struct resource *res;
if (!dev->enabled)
return;
switch (dev->path.pnp.device) {
case IT8772F_EC:
res = find_resource(dev, PNP_IDX_IO0);
if (!res)
break;
/* Enable PECI if configured */
it8772f_enable_peci(res, conf->peci_tmpin);
/* Enable FANx if configured */
if (conf->fan1_enable)
it8772f_enable_fan(res, 1);
if (conf->fan2_enable)
it8772f_enable_fan(res, 2);
if (conf->fan3_enable)
it8772f_enable_fan(res, 3);
break;
case IT8772F_GPIO:
/* Set GPIO output levels */
res = find_resource(dev, PNP_IDX_IO1);
if (res) {
if (conf->gpio_set1)
outb(conf->gpio_set1, res->base + 0);
if (conf->gpio_set2)
outb(conf->gpio_set2, res->base + 1);
if (conf->gpio_set3)
outb(conf->gpio_set3, res->base + 2);
if (conf->gpio_set4)
outb(conf->gpio_set4, res->base + 3);
if (conf->gpio_set5)
outb(conf->gpio_set5, res->base + 4);
if (conf->gpio_set6)
outb(conf->gpio_set6, res->base + 5);
}
break;
case IT8772F_KBCK:
if (!conf->skip_keyboard) {
set_kbc_ps2_mode();
pc_keyboard_init(&conf->keyboard);
}
break;
case IT8772F_KBCM:
break;
case IT8772F_IR:
break;
}
}
开发者ID:andy737,项目名称:firebrickRemote,代码行数:55,代码来源:superio.c
示例17: init
static void init(struct device *dev)
{
if (!dev->enabled)
return;
switch (dev->path.pnp.device) {
case PC87360_KBCK:
pc_keyboard_init(NO_AUX_DEVICE);
break;
}
}
开发者ID:canistation,项目名称:coreboot,代码行数:11,代码来源:superio.c
示例18: nct6791d_init
static void nct6791d_init(struct device *dev)
{
if (!dev->enabled)
return;
switch (dev->path.pnp.device) {
case NCT6791D_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;
}
}
开发者ID:canistation,项目名称:coreboot,代码行数:11,代码来源:superio.c
示例19: lpc47m10x_init
/**
* Initialize the specified Super I/O device.
*
* Devices other than COM ports and the keyboard controller are ignored.
* For COM ports, we configure the baud rate.
*
* @param dev Pointer to structure describing a Super I/O device.
*/
static void lpc47m10x_init(struct device *dev)
{
if (!dev->enabled)
return;
switch (dev->path.pnp.device) {
case LPC47M10X2_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;
}
}
开发者ID:canistation,项目名称:coreboot,代码行数:19,代码来源:superio.c
示例20: keyboard_on
static void keyboard_on(struct device *dev)
{
u8 regval;
regval = pci_read_config8(dev, 0x51);
regval |= 0x05;
regval &= 0xfd;
pci_write_config8(dev, 0x51, regval);
pc_keyboard_init(0);
}
开发者ID:andy737,项目名称:firebrickRemote,代码行数:11,代码来源:vt8235.c
注:本文中的pc_keyboard_init函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论