diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-06-30 00:38:37 -0400 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-07-08 20:13:41 -0400 |
commit | 6f7dde812defe5bc49cf463ac1579ffeda5cbfd4 (patch) | |
tree | da1ef7f37a4eaf9299c31b55f7e6008dd62f38b4 /arch/powerpc/platforms/cell/spufs/file.c | |
parent | 23d893f51cde7013e4c29094da2237cce4f20035 (diff) |
powerpc/spufs: add sizes for context files
Populate the size member of a few context files. Leave out files that
have different semantics with read vs mmap, or contain a
variable-length hex string.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/file.c')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/file.c | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index 9533a8ad33f2..fee645b580cc 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/arch/powerpc/platforms/cell/spufs/file.c | |||
@@ -2609,20 +2609,20 @@ static const struct file_operations spufs_ctx_fops = { | |||
2609 | 2609 | ||
2610 | struct spufs_tree_descr spufs_dir_contents[] = { | 2610 | struct spufs_tree_descr spufs_dir_contents[] = { |
2611 | { "capabilities", &spufs_caps_fops, 0444, }, | 2611 | { "capabilities", &spufs_caps_fops, 0444, }, |
2612 | { "mem", &spufs_mem_fops, 0666, }, | 2612 | { "mem", &spufs_mem_fops, 0666, LS_SIZE, }, |
2613 | { "regs", &spufs_regs_fops, 0666, }, | 2613 | { "regs", &spufs_regs_fops, 0666, sizeof(struct spu_reg128[128]), }, |
2614 | { "mbox", &spufs_mbox_fops, 0444, }, | 2614 | { "mbox", &spufs_mbox_fops, 0444, }, |
2615 | { "ibox", &spufs_ibox_fops, 0444, }, | 2615 | { "ibox", &spufs_ibox_fops, 0444, }, |
2616 | { "wbox", &spufs_wbox_fops, 0222, }, | 2616 | { "wbox", &spufs_wbox_fops, 0222, }, |
2617 | { "mbox_stat", &spufs_mbox_stat_fops, 0444, }, | 2617 | { "mbox_stat", &spufs_mbox_stat_fops, 0444, sizeof(u32), }, |
2618 | { "ibox_stat", &spufs_ibox_stat_fops, 0444, }, | 2618 | { "ibox_stat", &spufs_ibox_stat_fops, 0444, sizeof(u32), }, |
2619 | { "wbox_stat", &spufs_wbox_stat_fops, 0444, }, | 2619 | { "wbox_stat", &spufs_wbox_stat_fops, 0444, sizeof(u32), }, |
2620 | { "signal1", &spufs_signal1_fops, 0666, }, | 2620 | { "signal1", &spufs_signal1_fops, 0666, }, |
2621 | { "signal2", &spufs_signal2_fops, 0666, }, | 2621 | { "signal2", &spufs_signal2_fops, 0666, }, |
2622 | { "signal1_type", &spufs_signal1_type, 0666, }, | 2622 | { "signal1_type", &spufs_signal1_type, 0666, }, |
2623 | { "signal2_type", &spufs_signal2_type, 0666, }, | 2623 | { "signal2_type", &spufs_signal2_type, 0666, }, |
2624 | { "cntl", &spufs_cntl_fops, 0666, }, | 2624 | { "cntl", &spufs_cntl_fops, 0666, }, |
2625 | { "fpcr", &spufs_fpcr_fops, 0666, }, | 2625 | { "fpcr", &spufs_fpcr_fops, 0666, sizeof(struct spu_reg128), }, |
2626 | { "lslr", &spufs_lslr_ops, 0444, }, | 2626 | { "lslr", &spufs_lslr_ops, 0444, }, |
2627 | { "mfc", &spufs_mfc_fops, 0666, }, | 2627 | { "mfc", &spufs_mfc_fops, 0666, }, |
2628 | { "mss", &spufs_mss_fops, 0666, }, | 2628 | { "mss", &spufs_mss_fops, 0666, }, |
@@ -2632,14 +2632,16 @@ struct spufs_tree_descr spufs_dir_contents[] = { | |||
2632 | { "decr_status", &spufs_decr_status_ops, 0666, }, | 2632 | { "decr_status", &spufs_decr_status_ops, 0666, }, |
2633 | { "event_mask", &spufs_event_mask_ops, 0666, }, | 2633 | { "event_mask", &spufs_event_mask_ops, 0666, }, |
2634 | { "event_status", &spufs_event_status_ops, 0444, }, | 2634 | { "event_status", &spufs_event_status_ops, 0444, }, |
2635 | { "psmap", &spufs_psmap_fops, 0666, }, | 2635 | { "psmap", &spufs_psmap_fops, 0666, SPUFS_PS_MAP_SIZE, }, |
2636 | { "phys-id", &spufs_id_ops, 0666, }, | 2636 | { "phys-id", &spufs_id_ops, 0666, }, |
2637 | { "object-id", &spufs_object_id_ops, 0666, }, | 2637 | { "object-id", &spufs_object_id_ops, 0666, }, |
2638 | { "mbox_info", &spufs_mbox_info_fops, 0444, }, | 2638 | { "mbox_info", &spufs_mbox_info_fops, 0444, sizeof(u32), }, |
2639 | { "ibox_info", &spufs_ibox_info_fops, 0444, }, | 2639 | { "ibox_info", &spufs_ibox_info_fops, 0444, sizeof(u32), }, |
2640 | { "wbox_info", &spufs_wbox_info_fops, 0444, }, | 2640 | { "wbox_info", &spufs_wbox_info_fops, 0444, sizeof(u32), }, |
2641 | { "dma_info", &spufs_dma_info_fops, 0444, }, | 2641 | { "dma_info", &spufs_dma_info_fops, 0444, |
2642 | { "proxydma_info", &spufs_proxydma_info_fops, 0444, }, | 2642 | sizeof(struct spu_dma_info), }, |
2643 | { "proxydma_info", &spufs_proxydma_info_fops, 0444, | ||
2644 | sizeof(struct spu_proxydma_info)}, | ||
2643 | { "tid", &spufs_tid_fops, 0444, }, | 2645 | { "tid", &spufs_tid_fops, 0444, }, |
2644 | { "stat", &spufs_stat_fops, 0444, }, | 2646 | { "stat", &spufs_stat_fops, 0444, }, |
2645 | { "switch_log", &spufs_switch_log_fops, 0444 }, | 2647 | { "switch_log", &spufs_switch_log_fops, 0444 }, |
@@ -2649,13 +2651,13 @@ struct spufs_tree_descr spufs_dir_contents[] = { | |||
2649 | 2651 | ||
2650 | struct spufs_tree_descr spufs_dir_nosched_contents[] = { | 2652 | struct spufs_tree_descr spufs_dir_nosched_contents[] = { |
2651 | { "capabilities", &spufs_caps_fops, 0444, }, | 2653 | { "capabilities", &spufs_caps_fops, 0444, }, |
2652 | { "mem", &spufs_mem_fops, 0666, }, | 2654 | { "mem", &spufs_mem_fops, 0666, LS_SIZE, }, |
2653 | { "mbox", &spufs_mbox_fops, 0444, }, | 2655 | { "mbox", &spufs_mbox_fops, 0444, }, |
2654 | { "ibox", &spufs_ibox_fops, 0444, }, | 2656 | { "ibox", &spufs_ibox_fops, 0444, }, |
2655 | { "wbox", &spufs_wbox_fops, 0222, }, | 2657 | { "wbox", &spufs_wbox_fops, 0222, }, |
2656 | { "mbox_stat", &spufs_mbox_stat_fops, 0444, }, | 2658 | { "mbox_stat", &spufs_mbox_stat_fops, 0444, sizeof(u32), }, |
2657 | { "ibox_stat", &spufs_ibox_stat_fops, 0444, }, | 2659 | { "ibox_stat", &spufs_ibox_stat_fops, 0444, sizeof(u32), }, |
2658 | { "wbox_stat", &spufs_wbox_stat_fops, 0444, }, | 2660 | { "wbox_stat", &spufs_wbox_stat_fops, 0444, sizeof(u32), }, |
2659 | { "signal1", &spufs_signal1_nosched_fops, 0222, }, | 2661 | { "signal1", &spufs_signal1_nosched_fops, 0222, }, |
2660 | { "signal2", &spufs_signal2_nosched_fops, 0222, }, | 2662 | { "signal2", &spufs_signal2_nosched_fops, 0222, }, |
2661 | { "signal1_type", &spufs_signal1_type, 0666, }, | 2663 | { "signal1_type", &spufs_signal1_type, 0666, }, |
@@ -2664,7 +2666,7 @@ struct spufs_tree_descr spufs_dir_nosched_contents[] = { | |||
2664 | { "mfc", &spufs_mfc_fops, 0666, }, | 2666 | { "mfc", &spufs_mfc_fops, 0666, }, |
2665 | { "cntl", &spufs_cntl_fops, 0666, }, | 2667 | { "cntl", &spufs_cntl_fops, 0666, }, |
2666 | { "npc", &spufs_npc_ops, 0666, }, | 2668 | { "npc", &spufs_npc_ops, 0666, }, |
2667 | { "psmap", &spufs_psmap_fops, 0666, }, | 2669 | { "psmap", &spufs_psmap_fops, 0666, SPUFS_PS_MAP_SIZE, }, |
2668 | { "phys-id", &spufs_id_ops, 0666, }, | 2670 | { "phys-id", &spufs_id_ops, 0666, }, |
2669 | { "object-id", &spufs_object_id_ops, 0666, }, | 2671 | { "object-id", &spufs_object_id_ops, 0666, }, |
2670 | { "tid", &spufs_tid_fops, 0444, }, | 2672 | { "tid", &spufs_tid_fops, 0444, }, |