/* pci.c - Generic PCI interfaces. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2007,2009 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
#include <grub/mm_private.h>
GRUB_MOD_LICENSE ("GPLv3+");
/* FIXME: correctly support 64-bit architectures. */
/* #if GRUB_TARGET_SIZEOF_VOID_P == 4 */
struct grub_pci_dma_chunk *
{
void *ret;
if (align < 64)
align = 64;
if (!ret)
return 0;
return ret;
}
/* FIXME: evil. */
void
{
}
/* #endif */
#ifdef GRUB_MACHINE_MIPS_LOONGSON
volatile void *
{
}
{
}
#else
volatile void *
{
return (void *) ch;
}
{
}
#endif
{
}
void
{
{
{
{
/* Check if there is a device present. */
{
/* Devices are required to implement function 0, so if
it's missing then there is no device here. */
break;
else
continue;
}
return;
/* Probe only func = 0 if the device if not multifunction */
{
if (!(hdr & 0x800000))
break;
}
}
}
}
}