Ticket #5146: 0001-Added-stub-for-get_nth_pci_info.-BeRometer-works-now.patch

File 0001-Added-stub-for-get_nth_pci_info.-BeRometer-works-now.patch, 1.1 KB (added by diver, 12 years ago)

Added stub for get_nth_pci_info. BeRometer works now.

  • src/system/libroot/os/arch/x86/compatibility.c

    From 1d8ca048d3f9592c23bd99dc2d51f5acf2c047c1 Mon Sep 17 00:00:00 2001
    From: Sergei Reznikov <diver@gelios.net>
    Date: Thu, 31 May 2012 22:29:52 +0400
    Subject: Added stub for get_nth_pci_info. BeRometer works now.
    
    ---
     src/system/libroot/os/arch/x86/compatibility.c |    7 +++++++
     1 files changed, 7 insertions(+), 0 deletions(-)
    
    diff --git a/src/system/libroot/os/arch/x86/compatibility.c b/src/system/libroot/os/arch/x86/compatibility.c
    index 6ba9fec..291f35c 100644
    a b  
    1313#include <errno_private.h>
    1414#include <fs_info.h>
    1515#include <fs_volume.h>
     16#include <PCI.h>
    1617
    1718#include <syscalls.h>
    1819
    int _kstatfs_(dev_t device, void *whatever, int fd, const char *path, fs_info *i  
    2728int mount(const char *filesystem, const char *where, const char *device, ulong flags,
    2829    void *parms, int len);
    2930int unmount(const char *path);
     31long get_nth_pci_info(long index, pci_info *info);
    3032
    3133
    3234int
    unmount(const char *path)  
    143145    return 0;
    144146}
    145147
     148
     149long get_nth_pci_info(long index,pci_info *info)
     150{
     151    return B_ERROR;
     152}