lkml.org 
[lkml]   [2005]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/7] spufs: The SPU file system
Hi Arnd,

> This is a work-in-progress version of the SPU file system.

> --- linux-cg.orig/fs/spufs/file.c 1969-12-31 19:00:00.000000000 -0500
> +++ linux-cg/fs/spufs/file.c 2005-08-25 22:27:19.503976592 -0400
> @@ -0,0 +1,716 @@
> +/*
> + * SPU file system -- file contents
> +/* low-level mailbox write */
> +size_t spu_wbox_write(struct spu *spu, u32 data)
> +{
> + int ret;
> +
> + spin_lock_irq(&spu->register_lock);
> +
> + if (in_be32(&spu->problem->mb_stat_R) & 0x00ff00) {
> + /* we have space to write wbox_data to */
> + out_be32(&spu->problem->spu_mb_W, data);
> + ret = 4;
> + } else {
> + /* make sure we get woken up by the interrupt when space
> + becomes available */
> + out_be64(&spu->priv1->int_mask_class2_RW,
> + in_be64(&spu->priv1->int_mask_class2_RW) | 0x10);

I am confused. The code is architecture specific and does device I/O. Why do
you want to put this in fs/ and not drivers/?

Pekka
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-08-26 10:19    [W:0.055 / U:0.296 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site