22 #include <linux/slab.h>
35 void *file_private_data,
56 .read = snd_gf1_mem_proc_dump,
66 for (idx = 0; idx < 4; idx++) {
67 if (gus->
gf1.mem_alloc.banks_8[idx].size > 0) {
72 sprintf(name,
"gus-ram-%i", idx);
73 if (! snd_card_proc_new(gus->
card, name, &entry)) {
77 entry->
c.
ops = &snd_gf1_mem_proc_ops;
83 for (idx = 0; idx < 4; idx++) {
84 if (gus->
gf1.rom_present & (1 << idx)) {
90 sprintf(name,
"gus-rom-%i", idx);
91 if (! snd_card_proc_new(gus->
card, name, &entry)) {
95 entry->
c.
ops = &snd_gf1_mem_proc_ops;
96 priv->
address = idx * 4096 * 1024;