[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [PATCH] PCI-BIOS interface emulation



On 03/22/14 12:47, David Gálvez wrote:
Hi,

attached you can find a patch which adds interface emulation for the
PCI-BIOS interface, like it's done already for the XHDI and SCSIDRV
interfaces. This allows to control the access to PCI-BIOS functions
for non-root processes. Besides now it will be possible to call the
PCI functions from inside the kernel without worrying of passing
parameters conventions, the _PCI cookie, jump functions table, etc...,
and after exporting these functions to the kentry structure it will be
possible to call them from modules too.

This patch only takes care of the "through cookie way" of accessing
the PCI-BIOS, version 1.13 of the PCI_BIOS specification, it doesn't
take care of the XBIOS way as it's define in the specification version
2.00.

I've added the #define PCI-BIOS to avoid increasing size of kenels for
machines with few memory and surely not support for PCI, I'm thinking
of 68000 and 68030 targets. For now it's only enabled for the ColdFire
target, it could be enabled too for 68060 (Hades and CTPCI) and Milan
targets as testing are done.
Thank David.

Committed.

Alan.