* Recleanups in ocp.h
@ 2002-05-29 2:40 David Gibson
0 siblings, 0 replies; only message in thread
From: David Gibson @ 2002-05-29 2:40 UTC (permalink / raw)
To: Armin Kuster; +Cc: Paul Mackerras, linuxppc-embedded
Your last batch of OCP changes seems to have reintroduced at least one
thing which I removed, for no readily apparent reason, and introduced
a couple of other silly things:
- the procdir field of struct ocp_dev is back, but it's still
unused
- the new dma_mask field is used nowhere
- you've changed the type of the paddr field to (void *) which
is wrong. It's a physical address so it should have type
(phys_addr_t)
diff -urN /home/dgibson/kernel/linuxppc_2_4_devel/include/asm-ppc/ocp.h linux-grinch/include/asm-ppc/ocp.h
--- /home/dgibson/kernel/linuxppc_2_4_devel/include/asm-ppc/ocp.h Wed May 29 12:36:03 2002
+++ linux-grinch/include/asm-ppc/ocp.h Wed May 29 12:36:57 2002
@@ -117,17 +117,11 @@
char name[16];
u16 num;
enum ocp_type type; /* OCP device type */
- void *paddr;
+ phys_addr_t paddr;
void *vaddr;
u32 flags;
struct irq_resources irq_resource[MAX_EMACS][OCP_MAX_IRQS];
void *ocpdev; /* ocp device struct pointer */
- u64 dma_mask; /* Mask of the bits of bus address this
- device implements. Normally this is
- 0xffffffff. You only need to change
- this if your device has broken DMA
- or supports 64-bit transfers. */
-
#if defined(CONFIG_PM)
u32 current_state; /* Current operating state. In ACPI-speak,
this is D0-D3, D0 being fully functional,
@@ -139,7 +133,6 @@
int (*enable_wake) (u32 state, int enable); /* Enable wake event */
#endif
#if defined(CONFIG_OCP_PROC)
- struct proc_dir_entry *procdir; /* dir entry in /proc/bus */
struct proc_dir_entry *procent; /* device entry in /proc/bus/ocp */
#endif
};
--
David Gibson | For every complex problem there is a
david@gibson.dropbear.id.au | solution which is simple, neat and
| wrong. -- H.L. Mencken
http://www.ozlabs.org/people/dgibson
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-05-29 2:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-29 2:40 Recleanups in ocp.h David Gibson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).