macio.h (285eba57db7bd7d7c3c5929fb8621fdcaaea1b00) | macio.h (94a0cb1fc61ab7a0d47d268a7764374efeb2160b) |
---|---|
1#ifndef __MACIO_ASIC_H__ 2#define __MACIO_ASIC_H__ 3#ifdef __KERNEL__ 4 5#include <linux/of_device.h> 6 7extern struct bus_type macio_bus_type; 8 --- 24 unchanged lines hidden (view full) --- 33/* 34 * the macio_dev structure is used to describe a device 35 * within an Apple MacIO ASIC. 36 */ 37struct macio_dev 38{ 39 struct macio_bus *bus; /* macio bus this device is on */ 40 struct macio_dev *media_bay; /* Device is part of a media bay */ | 1#ifndef __MACIO_ASIC_H__ 2#define __MACIO_ASIC_H__ 3#ifdef __KERNEL__ 4 5#include <linux/of_device.h> 6 7extern struct bus_type macio_bus_type; 8 --- 24 unchanged lines hidden (view full) --- 33/* 34 * the macio_dev structure is used to describe a device 35 * within an Apple MacIO ASIC. 36 */ 37struct macio_dev 38{ 39 struct macio_bus *bus; /* macio bus this device is on */ 40 struct macio_dev *media_bay; /* Device is part of a media bay */ |
41 struct of_device ofdev; | 41 struct platform_device ofdev; |
42 struct device_dma_parameters dma_parms; /* ide needs that */ 43 int n_resources; 44 struct resource resource[MACIO_DEV_COUNT_RESOURCES]; 45 int n_interrupts; 46 struct resource interrupt[MACIO_DEV_COUNT_IRQS]; 47}; 48#define to_macio_device(d) container_of(d, struct macio_dev, ofdev.dev) 49#define of_to_macio_device(d) container_of(d, struct macio_dev, ofdev) --- 95 unchanged lines hidden --- | 42 struct device_dma_parameters dma_parms; /* ide needs that */ 43 int n_resources; 44 struct resource resource[MACIO_DEV_COUNT_RESOURCES]; 45 int n_interrupts; 46 struct resource interrupt[MACIO_DEV_COUNT_IRQS]; 47}; 48#define to_macio_device(d) container_of(d, struct macio_dev, ofdev.dev) 49#define of_to_macio_device(d) container_of(d, struct macio_dev, ofdev) --- 95 unchanged lines hidden --- |