---
name: "pci_map_rom"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/pci_map_rom"
---

# pci\_map\_rom(9)

map a PCI ROM to kernel space

## NAME

pci\_map\_rom - map a PCI ROM to kernel space

## SYNOPSIS

**void \_\_iomem \* pci\_map\_rom(struct pci\_dev \*** *pdev***, size\_t \*** *size***);**

## ARGUMENTS

*pdev*

pointer to pci device struct

*size*

pointer to receive size of pci window over ROM

## RETURN

kernel virtual pointer to image of ROM

Map a PCI ROM into kernel space. If ROM is boot video ROM, the shadow BIOS copy will be returned instead of the actual ROM.

## COPYRIGHT
