Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60577
b: refs/heads/master
c: a3323d1
h: refs/heads/master
i:
  60575: cfb9f0e
v: v3
  • Loading branch information
Geoff Levand authored and Paul Mackerras committed Jun 28, 2007
1 parent bf470ea commit 8edf568
Show file tree
Hide file tree
Showing 3 changed files with 338 additions and 281 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6758555da6a171d3f21ce36c0e12a2b8cff7ca9d
refs/heads/master: a3323d1a52ec5b70821590e4beaaf13c466fd396
31 changes: 20 additions & 11 deletions trunk/arch/powerpc/platforms/ps3/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,24 +131,28 @@ int ps3_repository_read_dev_reg(unsigned int bus_index,
/* repository bus enumerators */

struct ps3_repository_device {
enum ps3_bus_type bus_type;
unsigned int bus_index;
unsigned int bus_id;
enum ps3_dev_type dev_type;
unsigned int dev_index;
struct ps3_device_id did;
unsigned int dev_id;
};

int ps3_repository_find_device(enum ps3_bus_type bus_type,
enum ps3_dev_type dev_type,
const struct ps3_repository_device *start_dev,
struct ps3_repository_device *dev);
static inline int ps3_repository_find_first_device(
enum ps3_bus_type bus_type, enum ps3_dev_type dev_type,
struct ps3_repository_device *dev)
static inline struct ps3_repository_device *ps3_repository_bump_device(
struct ps3_repository_device *repo)
{
return ps3_repository_find_device(bus_type, dev_type, NULL, dev);
repo->dev_index++;
return repo;
}
int ps3_repository_find_interrupt(const struct ps3_repository_device *dev,
int ps3_repository_find_device(struct ps3_repository_device *repo);
int ps3_repository_find_devices(enum ps3_bus_type bus_type,
int (*callback)(const struct ps3_repository_device *repo));
int ps3_repository_find_bus(enum ps3_bus_type bus_type, unsigned int from,
unsigned int *bus_index);
int ps3_repository_find_interrupt(const struct ps3_repository_device *repo,
enum ps3_interrupt_type intr_type, unsigned int *interrupt_id);
int ps3_repository_find_reg(const struct ps3_repository_device *dev,
int ps3_repository_find_reg(const struct ps3_repository_device *repo,
enum ps3_reg_type reg_type, u64 *bus_addr, u64 *len);

/* repository block device info */
Expand Down Expand Up @@ -218,6 +222,11 @@ int ps3_repository_read_num_spu_resource_id(unsigned int *num_resource_id);
int ps3_repository_read_spu_resource_id(unsigned int res_index,
enum ps3_spu_resource_type* resource_type, unsigned int *resource_id);

/* repository vuart info */

int ps3_repository_read_vuart_av_port(unsigned int *port);
int ps3_repository_read_vuart_sysmgr_port(unsigned int *port);

/* Page table entries */
#define IOPTE_PP_W 0x8000000000000000ul /* protection: write */
#define IOPTE_PP_R 0x4000000000000000ul /* protection: read */
Expand Down
Loading

0 comments on commit 8edf568

Please sign in to comment.