---
name: "pci_enable_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_enable_rom"
---

# pci\_enable\_rom(9)

enable ROM decoding for a PCI device

## NAME

pci\_enable\_rom - enable ROM decoding for a PCI device

## SYNOPSIS

**int pci\_enable\_rom(struct pci\_dev \*** *pdev***);**

## ARGUMENTS

*pdev*

PCI device to enable

## DESCRIPTION

Enable ROM decoding on *dev*. This involves simply turning on the last bit of the PCI ROM BAR. Note that some cards may share address decoders between the ROM and other resources, so enabling it may disable access to MMIO registers or other card memory.

## COPYRIGHT
