/openbmc/qemu/hw/core/ |
H A D | loader.c | 148 /* Can only load an image into RAM or ROM */ in load_image_mr() 946 typedef struct Rom Rom; typedef 948 struct Rom { struct 970 QTAILQ_ENTRY(Rom) next; argument 974 static QTAILQ_HEAD(, Rom) roms = QTAILQ_HEAD_INITIALIZER(roms); 977 * rom->data can be heap-allocated or memory-mapped (e.g. when added with 980 static void rom_free_data(Rom *rom) in rom_free_data() argument 982 if (rom->mapped_file) { in rom_free_data() 983 g_mapped_file_unref(rom->mapped_file); in rom_free_data() 984 rom->mapped_file = NULL; in rom_free_data() [all …]
|
/openbmc/linux/drivers/pci/ |
H A D | rom.c | 3 * PCI ROM access routines 16 * pci_enable_rom - enable ROM decoding for a PCI device 19 * Enable ROM decoding on @dev. This involves simply turning on the last 20 * bit of the PCI ROM BAR. Note that some cards may share address decoders 21 * between the ROM and other resources, so enabling it may disable access 38 * Ideally pci_update_resource() would update the ROM BAR address, in pci_enable_rom() 40 * devices have buggy ROM BARs that read as zero when disabled. in pci_enable_rom() 52 * pci_disable_rom - disable ROM decoding for a PCI device 55 * Disable ROM decoding on a PCI device by turning off the last bit in the 56 * ROM BAR. [all …]
|
/openbmc/linux/arch/x86/kernel/ |
H A D | probe_roms.c | 27 .name = "System ROM", 34 .name = "Extension ROM", 41 .name = "Adapter ROM", 46 .name = "Adapter ROM", 51 .name = "Adapter ROM", 56 .name = "Adapter ROM", 61 .name = "Adapter ROM", 66 .name = "Adapter ROM", 73 .name = "Video ROM", 123 const void *rom; in find_oprom() local [all …]
|
/openbmc/qemu/roms/ |
H A D | Makefile | 7 pxe-rom-e1000 efi-rom-e1000 : VID := 8086 8 pxe-rom-e1000 efi-rom-e1000 : DID := 100e 9 pxe-rom-e1000e efi-rom-e1000e : VID := 8086 10 pxe-rom-e1000e efi-rom-e1000e : DID := 10d3 11 pxe-rom-eepro100 efi-rom-eepro100 : VID := 8086 12 pxe-rom-eepro100 efi-rom-eepro100 : DID := 1209 13 pxe-rom-ne2k_pci efi-rom-ne2k_pci : VID := 1050 14 pxe-rom-ne2k_pci efi-rom-ne2k_pci : DID := 0940 15 pxe-rom-pcnet efi-rom-pcnet : VID := 1022 16 pxe-rom-pcnet efi-rom-pcnet : DID := 2000 [all …]
|
/openbmc/qemu/hw/xen/ |
H A D | xen_pt_load_rom.c | 12 * Scan the assigned devices for the devices that have an option ROM, and then 13 * load the corresponding ROM data to RAM. If an error occurs while loading an 14 * option ROM, we just ignore that option ROM and continue with the next one. 28 /* If loading ROM from file, pci handles it */ in pci_assign_dev_load_option_rom() 34 "/sys/bus/pci/devices/%04x:%02x:%02x.%01x/rom", in pci_assign_dev_load_option_rom() 37 /* Write "1" to the ROM file to enable it */ in pci_assign_dev_load_option_rom() 58 error_report("ROM BAR \"%s\" (%ld bytes) is too large for ROM size %u", in pci_assign_dev_load_option_rom() 66 snprintf(name, sizeof(name), "%s.rom", object_get_typename(owner)); in pci_assign_dev_load_option_rom() 67 memory_region_init_ram(&dev->rom, owner, name, dev->romsize, &error_abort); in pci_assign_dev_load_option_rom() 68 ptr = memory_region_get_ram_ptr(&dev->rom); in pci_assign_dev_load_option_rom() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/leds/backlight/ |
H A D | lp855x-backlight.yaml | 61 "^rom-[0-9a-f]{2}h$": 66 rom-addr: 68 description: Register address of ROM area to be updated. 70 rom-val: 72 description: Value to write to the ROM register. 97 rom-14h { 98 rom-addr = /bits/ 8 <0x14>; 99 rom-val = /bits/ 8 <0xcf>; 103 rom-15h { 104 rom-addr = /bits/ 8 <0x15>; [all …]
|
/openbmc/qemu/pc-bios/ |
H A D | meson.build | 34 'qboot.rom', 49 'pxe-e1000.rom', 50 'pxe-eepro100.rom', 51 'pxe-ne2k_pci.rom', 52 'pxe-pcnet.rom', 53 'pxe-rtl8139.rom', 54 'pxe-virtio.rom', 55 'efi-e1000.rom', 56 'efi-eepro100.rom', 57 'efi-ne2k_pci.rom', [all …]
|
H A D | README | 24 Sources available at http://ipxe.org. Vendor:Device ID -> ROM mapping: 26 8086:100e -> pxe-e1000.rom 27 8086:1209 -> pxe-eepro100.rom 28 1050:0940 -> pxe-ne2k_pci.rom 29 1022:2000 -> pxe-pcnet.rom 30 10ec:8139 -> pxe-rtl8139.rom 31 1af4:1000 -> pxe-virtio.rom 73 - npcm7xx_bootrom.bin is a simplified, free (Apache 2.0) boot ROM for Nuvoton
|
/openbmc/linux/drivers/gpu/drm/qxl/ |
H A D | qxl_kms.c | 38 struct qxl_rom *rom = qdev->rom; in qxl_check_device() local 40 if (rom->magic != 0x4f525851) { in qxl_check_device() 41 DRM_ERROR("bad rom signature %x\n", rom->magic); in qxl_check_device() 45 DRM_INFO("Device Version %d.%d\n", rom->id, rom->update_id); in qxl_check_device() 46 DRM_INFO("Compression level %d log level %d\n", rom->compression_level, in qxl_check_device() 47 rom->log_level); in qxl_check_device() 49 rom->num_io_pages, rom->pages_offset); in qxl_check_device() 51 rom->surface0_area_size, rom->draw_area_offset); in qxl_check_device() 53 qdev->vram_size = rom->surface0_area_size; in qxl_check_device() 54 DRM_INFO("RAM header offset: 0x%x\n", rom->ram_header_offset); in qxl_check_device() [all …]
|
/openbmc/linux/Documentation/cdrom/ |
H A D | cdrom-standard.rst | 2 A Linux CD-ROM standard 29 This divergence of behavior has been very significant for CD-ROM 32 their drivers totally inconsistent, the writers of Linux CD-ROM 35 maintain uniform behavior across all the Linux CD-ROM drivers. 38 all the different CD-ROM device drivers for Linux. This document also 39 defines the various *ioctl()'s*, and how the low-level CD-ROM device 41 development kernels) several low-level CD-ROM device drivers, including 44 When the CD-ROM was developed, the interface between the CD-ROM drive 46 different CD-ROM interfaces were developed. Some of them had their 55 driver had to be enhanced. History has delivered us CD-ROM support for [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | xhci-pci-renesas.c | 54 const u32 *fw, size_t step, bool rom) in renesas_fw_download_image() argument 62 if (rom) in renesas_fw_download_image() 160 /* Check if external ROM exists */ in renesas_check_rom() 167 dev_dbg(&pdev->dev, "External ROM exists\n"); in renesas_check_rom() 168 return true; /* External ROM exists */ in renesas_check_rom() 187 dev_dbg(&pdev->dev, "Found ROM version: %x\n", version); in renesas_check_rom_state() 190 * Test if ROM is present and loaded, if so we can skip everything in renesas_check_rom_state() 197 /* ROM exists */ in renesas_check_rom_state() 198 dev_dbg(&pdev->dev, "ROM exists\n"); in renesas_check_rom_state() 206 dev_dbg(&pdev->dev, "Unknown ROM status ...\n"); in renesas_check_rom_state() [all …]
|
/openbmc/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-msm8974pro-sony-xperia-shinano-castor.dts | 154 rom-a0h { 155 rom-addr = /bits/ 8 <0xa0>; 156 rom-val = /bits/ 8 <0xff>; 158 rom-a1h { 159 rom-addr = /bits/ 8 <0xa1>; 160 rom-val = /bits/ 8 <0x3f>; 162 rom-a2h { 163 rom-addr = /bits/ 8 <0xa2>; 164 rom-val = /bits/ 8 <0x20>; 166 rom-a3h { [all …]
|
/openbmc/linux/drivers/scsi/isci/ |
H A D | probe_roms.c | 44 struct isci_orom *rom = NULL; in isci_request_oprom() local 55 rom = devm_kzalloc(&pdev->dev, sizeof(*rom), GFP_KERNEL); in isci_request_oprom() 56 if (!rom) { in isci_request_oprom() 63 for (i = 0; i < len && rom; i += ISCI_OEM_SIG_SIZE) { in isci_request_oprom() 73 sizeof(*rom)); in isci_request_oprom() 75 memcpy_fromio(rom, in isci_request_oprom() 84 tmp = (u8 *)rom; in isci_request_oprom() 85 for (j = 0; j < sizeof(*rom); j++, tmp++) in isci_request_oprom() 95 if (memcmp(rom->hdr.signature, in isci_request_oprom() 108 rom = NULL; in isci_request_oprom() [all …]
|
/openbmc/u-boot/board/synopsys/iot_devkit/ |
H A D | u-boot.lds | 10 ROM : ORIGIN = ROM_BASE, LENGTH = ROM_SIZE 26 } > ROM 34 } > ROM 39 } > ROM 48 } > ROM 56 * copied from ROM to RAM in board_early_init_f(). 63 } > RAM AT > ROM
|
/openbmc/linux/Documentation/devicetree/bindings/rng/ |
H A D | ti,omap-rom-rng.yaml | 4 $id: http://devicetree.org/schemas/rng/ti,omap-rom-rng.yaml# 7 title: OMAP ROM Random Number Generator 14 Secure SoCs may provide RNG via secure ROM calls like Nokia N900 does. 15 The implementation can depend on the SoC secure ROM used. 19 const: nokia,n900-rom-rng 38 compatible = "nokia,n900-rom-rng";
|
/openbmc/linux/drivers/video/ |
H A D | sticore.c | 49 /* used for 64-bit STI ROM */ in store_sti_val() 57 /* used for 32-bit STI ROM */ in store_sti_val() 362 * the first HP STI ROM built-in font.. in sti_font_setup() 392 * NOTE: This number is machine and STI ROM dependend. 603 static int sti_search_font(struct sti_cooked_rom *rom, int height, int width) in sti_search_font() argument 608 for (font = rom->font_start; font; font = font->next_font, i++) { in sti_search_font() 616 static struct sti_cooked_font *sti_select_font(struct sti_cooked_rom *rom) in sti_select_font() argument 623 font = sti_select_fbfont(rom, font_name); in sti_select_font() 629 font_index = sti_search_font(rom, in sti_select_font() 632 for (font = rom->font_start, i = font_index - 1; in sti_select_font() [all …]
|
/openbmc/qemu/backends/ |
H A D | hostmem-file.c | 36 OnOffAuto rom; member 60 switch (fb->rom) { in file_backend_memory_alloc() 62 /* Traditionally, opening the file readonly always resulted in ROM. */ in file_backend_memory_alloc() 63 fb->rom = fb->readonly ? ON_OFF_AUTO_ON : ON_OFF_AUTO_OFF; in file_backend_memory_alloc() 67 error_setg(errp, "property 'rom' = 'on' is not supported with" in file_backend_memory_alloc() 74 error_setg(errp, "property 'rom' = 'off' is incompatible with" in file_backend_memory_alloc() 87 ram_flags |= fb->rom == ON_OFF_AUTO_ON ? RAM_READONLY : 0; in file_backend_memory_alloc() 238 OnOffAuto rom = fb->rom; in file_memory_backend_get_rom() local 240 visit_type_OnOffAuto(v, name, &rom, errp); in file_memory_backend_get_rom() 256 visit_type_OnOffAuto(v, name, &fb->rom, errp); in file_memory_backend_set_rom() [all …]
|
/openbmc/u-boot/arch/xtensa/cpu/ |
H A D | u-boot.lds | 17 * U-Boot resets from SYSROM and unpacks itself from a ROM store to RAM. 19 * above it for the ROM store into which the rest of U-Boot is packed. 20 * The ROM store also needs to be above any other vectors that are in ROM. 21 * If a core has its vectors near the top of ROM, this must be edited. 23 * Note that to run C code out of ROM, the processor would have to support 28 * other means (serial ROM, for example) or are initialized early (requiring 91 * On many Xtensa boards a region of RAM may be mapped to the ROM address 105 "U-Boot ROM image is too large. Check optimization level.")
|
/openbmc/linux/drivers/firewire/ |
H A D | core-device.c | 97 * fw_csr_string() - reads a string from the configuration ROM 498 * the config ROM. We do all this with a cached bus generation. If the bus 501 * are reading the ROM may have changed the ROM during the reset. 508 u32 *rom, *stack; in read_config_rom() local 512 rom = kmalloc(sizeof(*rom) * MAX_CONFIG_ROM_SIZE + in read_config_rom() 514 if (rom == NULL) in read_config_rom() 517 stack = &rom[MAX_CONFIG_ROM_SIZE]; in read_config_rom() 518 memset(rom, 0, sizeof(*rom) * MAX_CONFIG_ROM_SIZE); in read_config_rom() 524 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom() 530 * rom to indicate that they are booting (for example, in read_config_rom() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | shadowpci.c | 29 void __iomem *rom; member 38 memcpy_fromio(bios->data + offset, priv->rom + offset, length); in pcirom_read() 48 pci_unmap_rom(priv->pdev, priv->rom); in pcirom_fini() 70 (priv->rom = pci_map_rom(pdev, &priv->size))) { in pcirom_init() 104 if (!pdev->rom || pdev->romlen == 0) in platform_init() 110 (priv->rom = ioremap(pdev->rom, pdev->romlen))) in platform_init() 123 iounmap(priv->rom); in platform_fini()
|
/openbmc/u-boot/doc/ |
H A D | README.x86 | 62 Building a ROM version of U-Boot (hereafter referred to as u-boot.rom) is a 64 shipped in the U-Boot source tree. Due to this reason, the u-boot.rom build is 66 on by enabling the ROM build either via an environment variable 74 Both tell the Makefile to build u-boot.rom as a target. 85 * video ROM - sets up the display 99 As for the video ROM, you can get it here [3] and rename it to vga.bin. 102 Now you can build U-Boot and obtain u-boot.rom: 117 * vga.bin - video ROM, which sets up the display 151 pci8086,0406.rom 0x7004c0 optionrom 65536 167 cbfstool samus.bin extract -n pci8086,0406.rom -f vga.bin [all …]
|
/openbmc/linux/arch/m68k/ |
H A D | Kconfig.machine | 433 comment "ROM configuration" 435 config ROM config 436 bool "Specify ROM linker regions" 438 Define a ROM region for the linker script. This creates a kernel 443 hex "Address of the base of the ROM vectors" 445 depends on ROM 447 This is almost always the same as the base of the ROM. Since on all 452 hex "Address of the base of system image in ROM" 454 depends on ROM 456 Define the start address of the system image in ROM. Commonly this [all …]
|
/openbmc/u-boot/drivers/pci/ |
H A D | pci_rom.c | 92 /* Enable expansion ROM address decoding. */ in pci_rom_probe() 96 debug("Option ROM address %x\n", rom_address); in pci_rom_probe() 99 debug("PCI expansion ROM, signature %#04x, INIT size %#04x, data ptr %#04x\n", in pci_rom_probe() 104 printf("Incorrect expansion ROM header signature %04x\n", in pci_rom_probe() 107 /* Disable expansion ROM address decoding */ in pci_rom_probe() 117 debug("PCI ROM image, vendor ID %04x, device ID %04x,\n", in pci_rom_probe() 129 debug("PCI ROM image, Class Code %06x, Code Type %02x\n", in pci_rom_probe() 133 debug("Class Code mismatch ROM %06x, dev %06x\n", in pci_rom_probe() 142 * pci_rom_load() - Load a ROM image and return a pointer to it 144 * @rom_header: Pointer to ROM image [all …]
|
/openbmc/qemu/hw/i386/ |
H A D | vapic.c | 63 MemoryRegion rom; member 297 /* bail out if ROM init code was not executed (missing ROM?) */ in update_rom_mapping() 302 /* find out virtual address of the ROM */ in update_rom_mapping() 318 /* fixup addresses in ROM if needed */ in update_rom_mapping() 544 uint8_t *rom; in patch_hypercalls() local 546 rom = g_malloc(s->rom_size); in patch_hypercalls() 547 cpu_physical_memory_read(rom_paddr, rom, s->rom_size); in patch_hypercalls() 561 if (memcmp(rom + pos, pattern, 7) == 0 && in patch_hypercalls() 562 (rom[pos + 7] == alternates[0] || rom[pos + 7] == alternates[1])) { in patch_hypercalls() 572 g_free(rom); in patch_hypercalls() [all …]
|
/openbmc/linux/drivers/w1/slaves/ |
H A D | w1_therm.c | 163 int (*convert)(u8 rom[9]); 173 * @rom: ROM device id (64bit Lasered ROM code + 1 CRC byte) 185 uint8_t rom[9]; member 197 * @rom: read device data (8 data bytes + 1 CRC byte) 198 * @crc: computed crc from rom 202 u8 rom[9]; member 213 * Resets the bus and select the slave by sending a ROM MATCH cmd 215 * it sent a SKIP ROM command if only one device is on the line. 287 * Send a SKIP ROM follow by a CONVERT T command on the bus. 649 info.rom[4] &= ~W1_THERM_RESOLUTION_MASK; in w1_DS18B20_set_resolution() [all …]
|