Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

residual.c File Reference

#include <linux/string.h>
#include <asm/residual.h>
#include <asm/pnp.h>
#include <asm/byteorder.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/stddef.h>
#include <linux/unistd.h>
#include <linux/ptrace.h>
#include <linux/malloc.h>
#include <linux/user.h>
#include <linux/a.out.h>
#include <linux/tty.h>
#include <linux/major.h>
#include <linux/interrupt.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/blk.h>
#include <linux/ioport.h>
#include <linux/pci.h>
#include <asm/mmu.h>
#include <asm/processor.h>
#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/ide.h>

Include dependency graph for residual.c:

Go to the source code of this file.

Defines

#define p   pkt->S14_Pack.S14_Data.S14_PPCPack
#define p   pkt->S4_Pack
#define p   pkt->S5_Pack
#define p   pkt->S8_Pack
#define p   pkt->S9_Pack
#define p   pkt->L4_Pack.L4_Data.L4_PPCPack
#define did   dev->DeviceId
#define Dev   res->Devices[i].DeviceId
#define Dev   res->Devices[i].DeviceId

Functions

static const unsigned char
__init
PnP_SUB_TYPE_STR (unsigned char BaseType, unsigned char SubType)
static const unsigned char
__init
PnP_INTERFACE_STR (unsigned char BaseType, unsigned char SubType, unsigned char Interface)
static void __init printsmallvendor (PnP_TAG_PACKET *pkt, int size)
static void __init printsmallpacket (PnP_TAG_PACKET *pkt, int size)
static void __init printlargevendor (PnP_TAG_PACKET *pkt, int size)
static void __init printlargepacket (PnP_TAG_PACKET *pkt, int size)
static void __init printpackets (PnP_TAG_PACKET *pkt, const char *cat)
void __init print_residual_device_info (void)
static int __init same_DevID (unsigned short vendor, unsigned short Number, char *str)
PPC_DEVICE __initresidual_find_device (unsigned long BusMask, unsigned char *DevID, int BaseType, int SubType, int Interface, int n)
PPC_DEVICE __initresidual_find_device_id (unsigned long BusMask, unsigned short DevID, int BaseType, int SubType, int Interface, int n)
PnP_TAG_PACKETPnP_find_packet (unsigned char *p, unsigned packet_tag, int n)
PnP_TAG_PACKET __initPnP_find_small_vendor_packet (unsigned char *p, unsigned packet_type, int n)
PnP_TAG_PACKET __initPnP_find_large_vendor_packet (unsigned char *p, unsigned packet_type, int n)

Variables

const char *PnP_BASE_TYPES[] __initdata


Define Documentation

#define Dev   res->Devices[i].DeviceId
 

#define Dev   res->Devices[i].DeviceId
 

Referenced by residual_find_device(), and residual_find_device_id().

#define did   dev->DeviceId
 

Referenced by print_residual_device_info().

#define p   pkt->L4_Pack.L4_Data.L4_PPCPack
 

#define p   pkt->S9_Pack
 

#define p   pkt->S8_Pack
 

#define p   pkt->S5_Pack
 

#define p   pkt->S4_Pack
 

#define p   pkt->S14_Pack.S14_Data.S14_PPCPack
 


Function Documentation

PnP_TAG_PACKET __init* PnP_find_large_vendor_packet unsigned char *  p,
unsigned  packet_type,
int  n
 

Definition at line 860 of file residual.c.

References next, and PnP_find_packet().

Here is the call graph for this function:

PnP_TAG_PACKET* PnP_find_packet unsigned char *  p,
unsigned  packet_tag,
int  n
 

Definition at line 827 of file residual.c.

References END_TAG, size, tag_small_count, and tag_type.

Referenced by PnP_find_large_vendor_packet(), and PnP_find_small_vendor_packet().

PnP_TAG_PACKET __init* PnP_find_small_vendor_packet unsigned char *  p,
unsigned  packet_type,
int  n
 

Definition at line 846 of file residual.c.

References next, PnP_find_packet(), and x70.

Here is the call graph for this function:

static const unsigned char __init* PnP_INTERFACE_STR unsigned char  BaseType,
unsigned char  SubType,
unsigned char  Interface
[static]
 

Definition at line 252 of file residual.c.

References NULL, and s.

Referenced by print_residual_device_info().

static const unsigned char __init* PnP_SUB_TYPE_STR unsigned char  BaseType,
unsigned char  SubType
[static]
 

Definition at line 243 of file residual.c.

References s.

Referenced by print_residual_device_info().

void __init print_residual_device_info void   ) 
 

Definition at line 497 of file residual.c.

References _RESIDUAL::ActualNumDevices, _PPC_DEVICE::AllocatedOffset, _BUS_ACCESS::_ProcBusAccess::BUID, _PPC_DEVICE::BusAccess, _BUS_ACCESS::_PCIAccess::BusNumber, _BUS_ACCESS::_ProcBusAccess::BusNumber, _PPC_DEVICE::CompatibleOffset, dev, _BUS_ACCESS::_PCIAccess::DevFuncNumber, _RESIDUAL::DevicePnPHeap, _RESIDUAL::Devices, did, EISADEVICE, i, _BUS_ACCESS::ISAAccess, ISADEVICE, _BUS_ACCESS::_ISAAccess::LogicalDevNumber, MCADEVICE, MXDEVICE, _BUS_ACCESS::PCIAccess, PCIDEVICE, PCMCIADEVICE, PnP_INTERFACE_STR(), PnP_SUB_TYPE_STR(), PNPISADEVICE, _PPC_DEVICE::PossibleOffset, printk, printpackets(), _BUS_ACCESS::ProcBusAccess, PROCESSORDEVICE, res, _RESIDUAL::ResidualLength, s, _BUS_ACCESS::_ISAAccess::SlotNumber, sprintf(), VMEDEVICE, and xffff.

Here is the call graph for this function:

static void __init printlargepacket PnP_TAG_PACKET pkt,
int  size
[static]
 

Definition at line 465 of file residual.c.

References LargeVendorItem, printk, printlargevendor(), _PnP_TAG_PACKET::S1_Pack, _PnP_TAG_PACKET::_S1_Pack::Tag, and tag_large_item_name.

Referenced by printpackets().

Here is the call graph for this function:

static void __init printlargevendor PnP_TAG_PACKET pkt,
int  size
[static]
 

Definition at line 355 of file residual.c.

References first, i, j, line, p, printk, sprintf(), t, x8000, and xffff.

Referenced by printlargepacket().

Here is the call graph for this function:

static void __init printpackets PnP_TAG_PACKET pkt,
const char *  cat
[static]
 

Definition at line 476 of file residual.c.

References _PnP_TAG_PACKET::_L1_Pack::Count0, _PnP_TAG_PACKET::_L1_Pack::Count1, END_TAG, _PnP_TAG_PACKET::L1_Pack, printk, printlargepacket(), printsmallpacket(), _PnP_TAG_PACKET::S1_Pack, size, _PnP_TAG_PACKET::_S1_Pack::Tag, tag_small_count, and tag_type.

Referenced by print_residual_device_info().

Here is the call graph for this function:

static void __init printsmallpacket PnP_TAG_PACKET pkt,
int  size
[static]
 

Definition at line 288 of file residual.c.

References DMAFormat, EndDepFunc, FixedIOPort, IOPort, IRQFormat, ISAAddr16bit, p, PnPVersion, printk, printsmallvendor(), Res1, Res2, Res3, _PnP_TAG_PACKET::S1_Pack, SmallVendorItem, StartDepFunc, _PnP_TAG_PACKET::_S1_Pack::Tag, tag_small_item_name, _PnP_TAG_PACKET::_S1_Pack::Version, x03, and x05.

Referenced by printpackets().

Here is the call graph for this function:

static void __init printsmallvendor PnP_TAG_PACKET pkt,
int  size
[static]
 

Definition at line 263 of file residual.c.

References c, i, p, and printk.

Referenced by printsmallpacket().

PPC_DEVICE __init* residual_find_device unsigned long  BusMask,
unsigned char *  DevID,
int  BaseType,
int  SubType,
int  Interface,
int  n
 

Definition at line 782 of file residual.c.

References Dev, _RESIDUAL::Devices, NULL, res, _RESIDUAL::ResidualLength, same_DevID(), and xffff.

Here is the call graph for this function:

PPC_DEVICE __init* residual_find_device_id unsigned long  BusMask,
unsigned short  DevID,
int  BaseType,
int  SubType,
int  Interface,
int  n
 

Definition at line 805 of file residual.c.

References Dev, _RESIDUAL::Devices, NULL, res, _RESIDUAL::ResidualLength, and xffff.

Referenced by __initfunc().

static int __init same_DevID unsigned short  vendor,
unsigned short  Number,
char *  str
[static]
 

Definition at line 766 of file residual.c.

References hexdigit(), strlen, x0f, and x1f.

Referenced by residual_find_device().

Here is the call graph for this function:


Variable Documentation

const unsigned char* PnP_INTERFACES [] __initdata
 

Initial value:

 {
  "Reserved",
  "MassStorageDevice",
  "NetworkInterfaceController",
  "DisplayController",
  "MultimediaController",
  "MemoryController",
  "BridgeController",
  "CommunicationsDevice",
  "SystemPeripheral",
  "InputDevice",
  "ServiceProcessor"
  }

Definition at line 125 of file residual.c.