Lines Matching +full:0 +full:- +full:based

12  * Note: I removed media-bay details from the feature stuff, I believe it's
13 * not worth it, the media-bay driver can directly use the mac-io
22 * error when negative, 0 is the default success result. Some functions
27 * When either is not used, pass 0.
48 * all of the Grand-Central based machines. We currently don't
51 #define PMAC_TYPE_PSURGE 0x10 /* PowerSurge */
52 #define PMAC_TYPE_ANS 0x11 /* Apple Network Server */
54 /* Here is the infamous serie of OHare based machines
56 #define PMAC_TYPE_COMET 0x20 /* Believed to be PowerBook 2400 */
57 #define PMAC_TYPE_HOOPER 0x21 /* Believed to be PowerBook 3400 */
58 #define PMAC_TYPE_KANGA 0x22 /* PowerBook 3500 (first G3) */
59 #define PMAC_TYPE_ALCHEMY 0x23 /* Alchemy motherboard base */
60 #define PMAC_TYPE_GAZELLE 0x24 /* Spartacus, some 5xxx/6xxx */
61 #define PMAC_TYPE_UNKNOWN_OHARE 0x2f /* Unknown, but OHare based */
63 /* Here are the Heathrow based machines
66 #define PMAC_TYPE_GOSSAMER 0x30 /* Gossamer motherboard */
67 #define PMAC_TYPE_SILK 0x31 /* Desktop PowerMac G3 */
68 #define PMAC_TYPE_WALLSTREET 0x32 /* Wallstreet/Mainstreet PowerBook*/
69 #define PMAC_TYPE_UNKNOWN_HEATHROW 0x3f /* Unknown but heathrow based */
71 /* Here are newworld machines based on Paddington (heathrow derivative)
73 #define PMAC_TYPE_101_PBOOK 0x40 /* 101 PowerBook (aka Lombard) */
74 #define PMAC_TYPE_ORIG_IMAC 0x41 /* First generation iMac */
75 #define PMAC_TYPE_YOSEMITE 0x42 /* B&W G3 */
76 #define PMAC_TYPE_YIKES 0x43 /* Yikes G4 (PCI graphics) */
77 #define PMAC_TYPE_UNKNOWN_PADDINGTON 0x4f /* Unknown but paddington based */
79 /* Core99 machines based on UniNorth 1.0 and 1.5
82 * to the device-tree. (Sawtooth is most tower G4s, FW_IMAC is most
83 * FireWire based iMacs, etc...). Those machines are too similar to be
85 * device-tree "model" or "compatible" property.
87 #define PMAC_TYPE_ORIG_IBOOK 0x40 /* First iBook model (no firewire) */
88 #define PMAC_TYPE_SAWTOOTH 0x41 /* Desktop G4s */
89 #define PMAC_TYPE_FW_IMAC 0x42 /* FireWire iMacs (except Pangea based) */
90 #define PMAC_TYPE_FW_IBOOK 0x43 /* FireWire iBooks (except iBook2) */
91 #define PMAC_TYPE_CUBE 0x44 /* Cube PowerMac */
92 #define PMAC_TYPE_QUICKSILVER 0x45 /* QuickSilver G4s */
93 #define PMAC_TYPE_PISMO 0x46 /* Pismo PowerBook */
94 #define PMAC_TYPE_TITANIUM 0x47 /* Titanium PowerBook */
95 #define PMAC_TYPE_TITANIUM2 0x48 /* Titanium II PowerBook (no L3, M6) */
96 #define PMAC_TYPE_TITANIUM3 0x49 /* Titanium III PowerBook (with L3 & M7) */
97 #define PMAC_TYPE_TITANIUM4 0x50 /* Titanium IV PowerBook (with L3 & M9) */
98 #define PMAC_TYPE_EMAC 0x50 /* eMac */
99 #define PMAC_TYPE_UNKNOWN_CORE99 0x5f
102 #define PMAC_TYPE_RACKMAC 0x80 /* XServe */
103 #define PMAC_TYPE_WINDTUNNEL 0x81
105 /* MacRISC2 machines based on the Pangea chipset
107 #define PMAC_TYPE_PANGEA_IMAC 0x100 /* Flower Power iMac */
108 #define PMAC_TYPE_IBOOK2 0x101 /* iBook2 (polycarbonate) */
109 #define PMAC_TYPE_FLAT_PANEL_IMAC 0x102 /* Flat panel iMac */
110 #define PMAC_TYPE_UNKNOWN_PANGEA 0x10f
112 /* MacRISC2 machines based on the Intrepid chipset
114 #define PMAC_TYPE_UNKNOWN_INTREPID 0x11f /* Generic */
116 /* MacRISC4 / G5 machines. We don't have per-machine selection here anymore,
119 #define PMAC_TYPE_POWERMAC_G5 0x150 /* U3 & U3H based */
120 #define PMAC_TYPE_POWERMAC_G5_U3L 0x151 /* U3L based desktop */
121 #define PMAC_TYPE_IMAC_G5 0x152 /* iMac G5 */
122 #define PMAC_TYPE_XSERVE_G5 0x153 /* Xserve G5 */
123 #define PMAC_TYPE_UNKNOWN_K2 0x19f /* Any other K2 based */
124 #define PMAC_TYPE_UNKNOWN_SHASTA 0x19e /* Any other Shasta based */
130 #define PMAC_MB_CAN_SLEEP 0x00000001
131 #define PMAC_MB_HAS_FW_POWER 0x00000002
132 #define PMAC_MB_OLD_CORE99 0x00000004
133 #define PMAC_MB_MOBILE 0x00000008
134 #define PMAC_MB_MAY_SLEEP 0x00000010
150 return -ENODEV; in pmac_call_feature()
161 #define PMAC_FTR_SCC_ENABLE PMAC_FTR_DEF(0)
162 #define PMAC_SCC_ASYNC 0
165 #define PMAC_SCC_FLAG_XMON 0x00001000
167 /* PMAC_FTR_MODEM_ENABLE (struct device_node* node, 0, int value)
172 /* PMAC_FTR_SWIM3_ENABLE (struct device_node* node, 0,int value)
173 * enable/disable the swim3 (floppy) cell of a mac-io ASIC
177 /* PMAC_FTR_MESH_ENABLE (struct device_node* node, 0, int value)
178 * enable/disable the mesh (scsi) cell of a mac-io ASIC
183 * enable/disable an IDE port of a mac-io ASIC
189 * assert(1)/release(0) an IDE reset line (mac-io IDE only)
193 /* PMAC_FTR_BMAC_ENABLE (struct device_node* node, 0, int value)
194 * enable/disable the bmac (ethernet) cell of a mac-io ASIC, also drive
199 /* PMAC_FTR_GMAC_ENABLE (struct device_node* node, 0, int value)
205 /* PMAC_FTR_GMAC_PHY_RESET (struct device_node* node, 0, 0)
211 /* PMAC_FTR_SOUND_CHIP_ENABLE (struct device_node* node, 0, int value)
217 /* -- add various tweaks related to sound routing -- */
219 /* PMAC_FTR_AIRPORT_ENABLE (struct device_node* node, 0, int value)
224 /* PMAC_FTR_RESET_CPU (NULL, int cpu_nr, 0)
225 * toggle the reset line of a CPU on an uninorth-based SMP machine
229 /* PMAC_FTR_USB_ENABLE (struct device_node* node, 0, int value)
231 * on keylargo based machines
235 /* PMAC_FTR_1394_ENABLE (struct device_node* node, 0, int value)
240 /* PMAC_FTR_1394_CABLE_POWER (struct device_node* node, 0, int value)
246 /* PMAC_FTR_SLEEP_STATE (struct device_node* node, 0, int value)
249 * Pass -1 as value to query for sleep capability
251 * Pass 0 to set IOs to wake
255 /* PMAC_FTR_GET_MB_INFO (NULL, selector, 0)
258 * selector: 0 - model id
259 * 1 - model flags (capabilities)
260 * 2 - model name (cast to const char *)
263 #define PMAC_MB_INFO_MODEL 0
267 /* PMAC_FTR_READ_GPIO (NULL, int index, 0)
269 * read a GPIO from a mac-io controller of type KeyLargo or Pangea.
276 * write a GPIO of a mac-io controller of type KeyLargo or Pangea.
286 /* PMAC_FTR_AACK_DELAY_ENABLE (NULL, int enable, 0)
308 #define PMAC_FTR_DEF(x) ((0x6660000) | (x))
330 macio_unknown = 0,
359 #define MACIO_FLAG_SCCA_ON 0x00000001
360 #define MACIO_FLAG_SCCB_ON 0x00000002
361 #define MACIO_FLAG_SCC_LOCKED 0x00000004
362 #define MACIO_FLAG_AIRPORT_ON 0x00000010
363 #define MACIO_FLAG_FW_SUPPORTED 0x00000020
367 #define MACIO_FCR32(macio, r) ((macio)->base + ((r) >> 2))
368 #define MACIO_FCR8(macio, r) (((volatile u8 __iomem *)((macio)->base)) + (r))
386 * Uninorth reg. access. Note that Uni-N regs are big endian
397 * 0 = not uninorth
409 SYS_CTRLER_UNKNOWN = 0,