Release 4.14 arch/mips/include/asm/mach-jazz/floppy.h
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1998, 2003 by Ralf Baechle
*/
#ifndef __ASM_MACH_JAZZ_FLOPPY_H
#define __ASM_MACH_JAZZ_FLOPPY_H
#include <linux/delay.h>
#include <linux/linkage.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <asm/addrspace.h>
#include <asm/jazz.h>
#include <asm/jazzdma.h>
#include <asm/pgtable.h>
static inline unsigned char fd_inb(unsigned int port)
{
unsigned char c;
c = *(volatile unsigned char *) port;
udelay(1);
return c;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 33 | 94.29% | 1 | 50.00% |
Andrew Morton | 2 | 5.71% | 1 | 50.00% |
Total | 35 | 100.00% | 2 | 100.00% |
static inline void fd_outb(unsigned char value, unsigned int port)
{
*(volatile unsigned char *) port = value;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 24 | 92.31% | 1 | 50.00% |
Andrew Morton | 2 | 7.69% | 1 | 50.00% |
Total | 26 | 100.00% | 2 | 100.00% |
/*
* How to access the floppy DMA functions.
*/
static inline void fd_enable_dma(void)
{
vdma_enable(JAZZ_FLOPPY_DMA);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 11 | 78.57% | 1 | 50.00% |
Andrew Morton | 3 | 21.43% | 1 | 50.00% |
Total | 14 | 100.00% | 2 | 100.00% |
static inline void fd_disable_dma(void)
{
vdma_disable(JAZZ_FLOPPY_DMA);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 11 | 78.57% | 1 | 50.00% |
Andrew Morton | 3 | 21.43% | 1 | 50.00% |
Total | 14 | 100.00% | 2 | 100.00% |
static inline int fd_request_dma(void)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 9 | 75.00% | 1 | 50.00% |
Andrew Morton | 3 | 25.00% | 1 | 50.00% |
Total | 12 | 100.00% | 2 | 100.00% |
static inline void fd_free_dma(void)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 5 | 62.50% | 1 | 50.00% |
Andrew Morton | 3 | 37.50% | 1 | 50.00% |
Total | 8 | 100.00% | 2 | 100.00% |
static inline void fd_clear_dma_ff(void)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 5 | 62.50% | 1 | 50.00% |
Andrew Morton | 3 | 37.50% | 1 | 50.00% |
Total | 8 | 100.00% | 2 | 100.00% |
static inline void fd_set_dma_mode(char mode)
{
vdma_set_mode(JAZZ_FLOPPY_DMA, mode);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 15 | 88.24% | 1 | 50.00% |
Andrew Morton | 2 | 11.76% | 1 | 50.00% |
Total | 17 | 100.00% | 2 | 100.00% |
static inline void fd_set_dma_addr(char *a)
{
vdma_set_addr(JAZZ_FLOPPY_DMA, vdma_phys2log(CPHYSADDR((unsigned long)a)));
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 19 | 67.86% | 1 | 50.00% |
Andrew Morton | 9 | 32.14% | 1 | 50.00% |
Total | 28 | 100.00% | 2 | 100.00% |
static inline void fd_set_dma_count(unsigned int count)
{
vdma_set_count(JAZZ_FLOPPY_DMA, count);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 16 | 88.89% | 1 | 50.00% |
Andrew Morton | 2 | 11.11% | 1 | 50.00% |
Total | 18 | 100.00% | 2 | 100.00% |
static inline int fd_get_dma_residue(void)
{
return vdma_get_residue(JAZZ_FLOPPY_DMA);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 12 | 80.00% | 1 | 50.00% |
Andrew Morton | 3 | 20.00% | 1 | 50.00% |
Total | 15 | 100.00% | 2 | 100.00% |
static inline void fd_enable_irq(void)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 5 | 62.50% | 1 | 50.00% |
Andrew Morton | 3 | 37.50% | 1 | 50.00% |
Total | 8 | 100.00% | 2 | 100.00% |
static inline void fd_disable_irq(void)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 5 | 62.50% | 1 | 50.00% |
Andrew Morton | 3 | 37.50% | 1 | 50.00% |
Total | 8 | 100.00% | 2 | 100.00% |
static inline int fd_request_irq(void)
{
return request_irq(FLOPPY_IRQ, floppy_interrupt,
0, "floppy", NULL);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andrew Morton | 22 | 95.65% | 1 | 50.00% |
Yong Zhang | 1 | 4.35% | 1 | 50.00% |
Total | 23 | 100.00% | 2 | 100.00% |
static inline void fd_free_irq(void)
{
free_irq(FLOPPY_IRQ, NULL);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andrew Morton | 15 | 93.75% | 1 | 50.00% |
Linus Torvalds (pre-git) | 1 | 6.25% | 1 | 50.00% |
Total | 16 | 100.00% | 2 | 100.00% |
static inline unsigned long fd_getfdaddr1(void)
{
return JAZZ_FDC_BASE;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 10 | 76.92% | 1 | 50.00% |
Andrew Morton | 3 | 23.08% | 1 | 50.00% |
Total | 13 | 100.00% | 2 | 100.00% |
static inline unsigned long fd_dma_mem_alloc(unsigned long size)
{
unsigned long mem;
mem = __get_dma_pages(GFP_KERNEL, get_order(size));
if(!mem)
return 0;
vdma_alloc(CPHYSADDR(mem), size); /* XXX error checking */
return mem;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 47 | 94.00% | 3 | 75.00% |
Andrew Morton | 3 | 6.00% | 1 | 25.00% |
Total | 50 | 100.00% | 4 | 100.00% |
static inline void fd_dma_mem_free(unsigned long addr, unsigned long size)
{
vdma_free(vdma_phys2log(CPHYSADDR(addr)));
free_pages(addr, get_order(size));
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 33 | 91.67% | 3 | 75.00% |
Andrew Morton | 3 | 8.33% | 1 | 25.00% |
Total | 36 | 100.00% | 4 | 100.00% |
static inline unsigned long fd_drive_type(unsigned long n)
{
/* XXX This is wrong for machines with ED 2.88mb disk drives like the
Olivetti M700. Anyway, we should suck this from the ARC
firmware. */
if (n == 0)
return 4; /* 3,5", 1.44mb */
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 24 | 92.31% | 2 | 66.67% |
Andrew Morton | 2 | 7.69% | 1 | 33.33% |
Total | 26 | 100.00% | 3 | 100.00% |
#endif /* __ASM_MACH_JAZZ_FLOPPY_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 310 | 75.61% | 3 | 60.00% |
Andrew Morton | 99 | 24.15% | 1 | 20.00% |
Yong Zhang | 1 | 0.24% | 1 | 20.00% |
Total | 410 | 100.00% | 5 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.