Axe the barrier_{read,write,rw}() helper functions as this method of

doing memory barriers doesn't really scale well for the ia64.  Also,
memory barriers are more a property of the CPU than bus space.

Requested by:	dfr
This commit is contained in:
John Baldwin 2000-10-20 06:45:48 +00:00
parent 69a71301db
commit 3f4809dd0d
9 changed files with 0 additions and 203 deletions

View File

@ -364,18 +364,6 @@ void busspace_generic_barrier(struct alpha_busspace *space,
#define bus_space_barrier(t, h, o, l, f) \
(t)->ab_ops->abo_barrier(t, (h)+(o), l, f)
#define barrier_read \
bus_space_barrier(busspace_isa_mem, 0, BUS_SPACE_UNRESTRICTED, \
BUS_SPACE_BARRIER_READ)
#define barrier_write \
bus_space_barrier(busspace_isa_mem, 0, BUS_SPACE_UNRESTRICTED, \
BUS_SPACE_BARRIER_WRITE)
#define barrier_rw \
bus_space_barrier(busspace_isa_mem, 0, BUS_SPACE_UNRESTRICTED, \
BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE)
/*
* Flags used in various bus DMA methods.
*/

View File

@ -1152,30 +1152,6 @@ bus_space_barrier(bus_space_tag_t tag, bus_space_handle_t bsh,
__asm __volatile("" : : : "memory");
}
/*
* Generic memory barrier functions.
*/
static __inline void
barrier_read(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0, BUS_SPACE_BARRIER_READ);
}
static __inline void
barrier_write(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_WRITE);
}
static __inline void
barrier_rw(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
}
/*
* Flags used in various bus DMA methods.
*/

View File

@ -1152,30 +1152,6 @@ bus_space_barrier(bus_space_tag_t tag, bus_space_handle_t bsh,
__asm __volatile("" : : : "memory");
}
/*
* Generic memory barrier functions.
*/
static __inline void
barrier_read(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0, BUS_SPACE_BARRIER_READ);
}
static __inline void
barrier_write(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_WRITE);
}
static __inline void
barrier_rw(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
}
/*
* Flags used in various bus DMA methods.
*/

View File

@ -1152,30 +1152,6 @@ bus_space_barrier(bus_space_tag_t tag, bus_space_handle_t bsh,
__asm __volatile("" : : : "memory");
}
/*
* Generic memory barrier functions.
*/
static __inline void
barrier_read(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0, BUS_SPACE_BARRIER_READ);
}
static __inline void
barrier_write(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_WRITE);
}
static __inline void
barrier_rw(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
}
/*
* Flags used in various bus DMA methods.
*/

View File

@ -1152,30 +1152,6 @@ bus_space_barrier(bus_space_tag_t tag, bus_space_handle_t bsh,
__asm __volatile("" : : : "memory");
}
/*
* Generic memory barrier functions.
*/
static __inline void
barrier_read(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0, BUS_SPACE_BARRIER_READ);
}
static __inline void
barrier_write(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_WRITE);
}
static __inline void
barrier_rw(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
}
/*
* Flags used in various bus DMA methods.
*/

View File

@ -1152,30 +1152,6 @@ bus_space_barrier(bus_space_tag_t tag, bus_space_handle_t bsh,
__asm __volatile("" : : : "memory");
}
/*
* Generic memory barrier functions.
*/
static __inline void
barrier_read(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0, BUS_SPACE_BARRIER_READ);
}
static __inline void
barrier_write(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_WRITE);
}
static __inline void
barrier_rw(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
}
/*
* Flags used in various bus DMA methods.
*/

View File

@ -1454,30 +1454,6 @@ bus_space_barrier(bus_space_tag_t tag, bus_space_handle_t bsh,
__asm __volatile("" : : : "memory");
}
/*
* Generic memory barrier functions.
*/
static __inline void
barrier_read(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0, BUS_SPACE_BARRIER_READ);
}
static __inline void
barrier_write(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_WRITE);
}
static __inline void
barrier_rw(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
}
/*
* Flags used in various bus DMA methods.
*/

View File

@ -1023,29 +1023,6 @@ bus_space_barrier(bus_space_tag_t tag, bus_space_handle_t bsh,
ia64_mf();
}
/*
* Generic memory barrier functions.
*/
static __inline void
barrier_read(void)
{
bus_space_barrier(IA64_BUS_SPACE_MEM, 0, 0, ~0, BUS_SPACE_BARRIER_READ);
}
static __inline void
barrier_write(void)
{
bus_space_barrier(IA64_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_WRITE);
}
static __inline void
barrier_rw(void)
{
bus_space_barrier(IA64_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
}
/*
* Flags used in various bus DMA methods.
*/

View File

@ -1152,30 +1152,6 @@ bus_space_barrier(bus_space_tag_t tag, bus_space_handle_t bsh,
__asm __volatile("" : : : "memory");
}
/*
* Generic memory barrier functions.
*/
static __inline void
barrier_read(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0, BUS_SPACE_BARRIER_READ);
}
static __inline void
barrier_write(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_WRITE);
}
static __inline void
barrier_rw(void)
{
bus_space_barrier(I386_BUS_SPACE_MEM, 0, 0, ~0,
BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
}
/*
* Flags used in various bus DMA methods.
*/