# US 2006/0041710 A1 · Option ROM code acquisition

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2006/0041710 A1
- Document ID: US20060041710A1
- Status: Published application
- Kind: A1
- Application number: 10/923,905
- Filed: 2004-08-23
- Published: 2006-02-23
- Earliest claimed: 2004-08-23
- Assignees: Hewlett-Packard Development Company, L.P.
- Inventors: Stephen Silva; John Morrison; Michael Allison
- Web page: https://patentgrep.com/patent/US20060041710A1

## CPC

- G06F 9/4411: {Configuring for operating with peripheral devices; Loading of device drivers}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, methodologies, media, and other embodiments associated with acquiring processor executable instructions from an option ROM are described. One exemplary method embodiment includes discovering input/output devices operably connected to a processor and updating a data structure with information concerning the input/output devices. The example method embodiment may also include obtaining a device driver from an option ROM associated with an input/output device, storing the device driver in non-MMIO memory and making the device driver available to input/output devices physically connected to the processor and for which information is stored in the data structure.

## Claims

### Claim 1

A method, comprising:
determining an amount of a memory mapped input/output (MMIO) memory available to a computer;
accessing a data store configured to store information concerning devices operably connected to the computer;
searching for devices operably connected to the computer;
upon discovering a device that is operably connected to the computer:
logically representing the device in the data store;
determining an MMIO memory requirement for the device; and
upon determining that the device includes an option ROM:
mapping the option ROM into the computer;
opening an MMIO aperture for the device;
reading a device driver for the device from the option ROM;
storing the device driver in a non-MMIO memory available to the computer;
unmapping the option ROM from the computer; and
linking the device driver stored in the non-MMIO memory to one or more devices logically represented in the data store; and
for devices for which MMIO apertures were opened, closing the MMIO apertures.

### Claim 2 (depends on 1)

The method of claim 1, including:
determining a total amount of MMIO memory required by the one or more devices logically represented in the data store;
selectively partitioning the MMIO memory available to the computer based, at least in part, on the total amount of MMIO memory required by the one or more devices logically represented in the data store and an individual amount of MMIO memory required by individual devices logically represented in the data store;
selectively allocating a portion of the MMIO memory available to the computer to a device logically represented in the data store; and
selectively mapping the portion of the MMIO memory to the device logically represented in the data store.

### Claim 3 (depends on 1)

The method of claim 1, the data store being configured to store, in a hierarchical representation, information concerning devices operably connected to the computer.

### Claim 4 (depends on 3)

The method of claim 3, the hierarchical representation comprising a tree.

### Claim 5 (depends on 1)

The method of claim 1, including opening the MMIO aperture to a maximum size.

### Claim 6 (depends on 1)

The method of claim 1, where linking the device driver stored in the non-MMIO memory to one or more devices logically represented in the data store includes establishing, in the data store, a pointer to the device driver stored in the non-MMIO memory.

### Claim 7 (depends on 1)

The method of claim 1, including:
identifying a slot where another device could be operably connected to the computer;
upon identifying the slot, reserving a pre-determined amount of MMIO-memory for the slot; and
after partitioning, allocating, and mapping the MMIO memory available to the computer to the one or more devices logically represented in the data store, upon determining that an additional device that includes an option ROM has been associated with the slot:
logically representing the additional device in the data store;
opening an additional MMIO aperture for the additional device, where the additional MMIO aperture size is less than or equal to the pre-determined amount of MMIO memory previously reserved for the slot;
reading an additional device driver for the additional device from the option ROM on the additional device;
storing the additional device driver for the additional device in the non-MMIO memory;
closing the additional MMIO aperture for the additional device; and
linking the additional device driver stored in the non-MMIO memory for the additional device to one or more devices logically represented in the data store.

### Claim 8 (depends on 1)

The method of claim 1, including:
after partitioning, allocating, and mapping the MMIO memory available to the computer to the one or more devices logically represented in the data store, upon determining that a first device that is logically represented in the data store has been replaced by a second device and that the second device includes an option ROM:
logically representing the second device in the data store;
opening an MMIO aperture for the second device, where the MMIO aperture size for the second device is less than or equal to the amount of MMIO memory previously allocated to the first device;
reading a device driver for the second device from the option ROM on the second device;
storing the device driver for the second device in the non-MMIO memory;
closing the MMIO aperture for the second device; and
linking the device driver stored in the non-MMIO memory for the second device to one or more devices logically represented in the data store.

### Claim 9

A method, comprising:
determining an amount of a memory mapped input/output (MMIO) memory available to a computer with a cellular architecture;
accessing a data store configured to store, in a tree data structure, information concerning I/O devices operably connected to the computer;
searching for I/O devices operably connected to the computer;
upon discovering an I/O device that is operably connected to the computer:
logically representing the I/O device in the tree data structure;
determining an MMIO memory requirement for the I/O device by examining a data value stored on the I/O device; and
upon determining that the I/O device includes an option ROM:
mapping the option ROM into the computer;
opening an MMIO aperture for the I/O device to a maximum possible size;
reading a device driver for the I/O device from the option ROM;
storing the device driver in non-MMIO memory available to the computer;
unmapping the option ROM from the computer; and
linking the device driver stored in the non-MMIO memory to an I/O device logically represented in the tree data structure;
for I/O devices for which MMIO apertures were opened, closing the MMIO apertures;
determining a total amount of MMIO memory required by I/O devices logically represented in the tree data structure;
selectively partitioning the MMIO memory available to the computer based, at least in part, on the total amount of MMIO memory required by the I/O devices logically represented in the tree data structure;
selectively allocating a portion of the MMIO memory available to the computer to an I/O device logically represented in the tree data structure; and
selectively mapping the portion of the MMIO memory to the I/O device logically represented in the tree data structure.

### Claim 10

A computer-readable medium storing processor executable instructions operable to perform a method, the method comprising:
determining an amount of a memory mapped input/output (MMIO) memory available to a computer;
accessing a data store configured to store information concerning devices operably connected to the computer;
searching for devices operably connected to the computer;
upon discovering a device that is operably connected to the computer:
logically representing the device in the data store;
determining an MMIO memory requirement for the device; and
upon determining that the device includes an option ROM:
mapping the option ROM into the computer;
opening an MMIO aperture for the device;
reading a device driver for the device from the option ROM;
storing the device driver in non-MMIO memory available to the computer;
unmapping the option ROM from the computer; and
linking the device driver stored in the non-MMIO memory to one or more devices logically represented in the data store; and
for devices for which MMIO apertures were opened, closing the MMIO apertures.

### Claim 11

A method, comprising:
selectively acquiring system data concerning one or more components in a hierarchy of components operably connected to a processor;
for a component for which system data is acquired, where the component includes an option ROM:
determining an MMIO memory requirement for the component;
selectively acquiring a processor executable instruction from the option ROM;
storing the processor executable instruction in non-MMIO memory available to the processor; and
storing the location of the processor executable instruction in non-MMIO memory in a memory location available to the processor;
determining a total amount of MMIO memory required by components for which system data was acquired; and
allocating and mapping MMIO memory available to the processor to components for which system data was acquired.

### Claim 12 (depends on 11)

The method of claim 11, where system data concerning a component includes one or more of, a component identifier, a component option ROM identifier, a component option ROM size, a component maximum MMIO aperture size, and a component MMIO size requirement.

### Claim 13 (depends on 11)

The method of claim 11, where determining an MMIO memory requirement for the component includes retrieving a data value from the component.

### Claim 14 (depends on 11)

The method of claim 11, where selectively acquiring the processor executable instruction from the option ROM includes reading from the option ROM.

### Claim 15 (depends on 11)

The method of claim 11, where allocating and mapping MMIO memory available to the processor to components for which system data was acquired includes:
upon determining that the processor has enough MMIO memory to satisfy the MMIO memory requirements of the components for which system data was acquired:
allocating a portion of the MMIO memory available to the processor, where the portion of the MMIO memory is sufficient to satisfy the MMIO memory requirement for a selected component for which system data was acquired; and
mapping the portion to the selected component.

### Claim 16

A system, comprising:
a device discovery logic configured to discover a device operably connected to a processor having available a finite amount of memory mapped input/output (MMIO) memory for interacting with the device, the processor also having available a finite amount of non-MMIO memory;
an option ROM logic configured to read a processor executable instruction from an option ROM associated with a device discovered by the device discovery logic and to store the processor executable instruction in the non-MMIO memory; and
an MMIO allocation logic operably connected to the processor, the MMIO allocation logic being configured to determine an MMIO memory requirement for devices discovered by the device discovery logic and to selectively allocate MMIO memory to the devices.

### Claim 17 (depends on 16)

The system of claim 16, the device comprising an input/output device.

### Claim 18 (depends on 16)

The system of claim 16, the processor being an element of a computing system organized in a cellular architecture.

### Claim 19 (depends on 16)

The system of claim 16, the processor executable instruction comprising a portion of a device driver configured to facilitate an interaction between the device and the processor.

### Claim 20 (depends on 16)

The system of claim 16, the device discovery logic being configured to manipulate a system tree to record data concerning devices discovered by the device discovery logic and to programmatically link the processor executable instruction stored in the non-MMIO memory to one or more devices for which data is recorded in a system tree.

### Claim 21 (depends on 20)

The system of claim 20, the device discovery logic being configured:
to identify an unused physical location where a device could be operably connected to the processor and to reserve a pre-determined amount of MMIO-memory for the unused physical location;
after allocating MMIO memory to one or more devices, to determine that a newly discovered device that includes an option ROM has occupied the unused physical location;
to update the system tree with data concerning the newly discovered device;
to acquire a device driver from the newly discovered device and to store the device driver in non-MMIO memory; and
to make the device driver from the newly discovered device stored in non-MMIO memory available to one or more devices for which data is recorded in the system tree.

### Claim 22 (depends on 20)

The system of claim 20, the device discovery logic being configured:
to determine that a first device for which data is recorded in the system tree has been replaced, after allocating MMIO memory to the first device, with a second device that includes an option ROM:
to open an MMIO aperture, where the MMIO aperture size is less than or equal to an amount of MMIO memory previously allocated to the first device;
to read a device driver for the second device from the option ROM on the second device;
to store the device driver for the second device in non-MMIO memory;
to close the MMIO aperture; and
to link the device driver for the second device stored in non-MMIO memory to one or more devices for which data is recorded in the system tree.

### Claim 23

A system, comprising:
means for discovering an input/output device that is physically connected to a processor and for updating a data structure with information concerning the input/output device;
means for obtaining a device driver from an option ROM associated with the input/output device; and
means for storing the device driver in non-MMIO memory available to the processor and for making the device driver in non-MMIO memory available to one or more input/output devices for which information is stored in the data structure.

### Claim 24

A set of application programming interfaces embodied on a computer-readable medium for execution by a processor in conjunction with acquiring a device driver from an option ROM and storing the device driver in non-MMIO memory, comprising:
a first interface for communicating an MMIO configuration data;
a second interface for communicating an aperture data; and
a third interface for communicating a device driver data.

### Claim 25 (depends on 24)

The set of application programming interfaces of claim 24, where:
the MMIO configuration data identifies one of, a type, an amount, and an availability, of MMIO memory available to a system for which device drivers are being acquired;
the aperture data identifies a size of an aperture associated with a discovered device from which a device driver will be read from an option ROM; and
the device driver data includes a processor executable instruction read from an option ROM on a discovered device.

### Claim 26

A method, comprising:
discovering input/output devices operably connected to a processor;
updating a data structure with information concerning the input/output devices;
obtaining a device driver from an option ROM associated with an input/output device;
storing the device driver in non-MMIO memory; and
making the device driver available to input/output devices physically connected to the processor and for which information is stored in the data structure.
