Server IP : 172.67.216.182 / Your IP : 162.158.162.130 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-142-generic/arch/arm/include/asm/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0-only */ /* * arch/arm/include/asm/floppy.h * * Copyright (C) 1996-2000 Russell King * * Note that we don't touch FLOPPY_DMA nor FLOPPY_IRQ here */ #ifndef __ASM_ARM_FLOPPY_H #define __ASM_ARM_FLOPPY_H #define fd_outb(val, base, reg) \ do { \ int new_val = (val); \ if ((reg) == FD_DOR) { \ if (new_val & 0xf0) \ new_val = (new_val & 0x0c) | \ floppy_selects[new_val & 3]; \ else \ new_val &= 0x0c; \ } \ outb(new_val, (base) + (reg)); \ } while(0) #define fd_inb(base, reg) inb((base) + (reg)) #define fd_request_irq() request_irq(IRQ_FLOPPYDISK,floppy_interrupt,\ 0,"floppy",NULL) #define fd_free_irq() free_irq(IRQ_FLOPPYDISK,NULL) #define fd_disable_irq() disable_irq(IRQ_FLOPPYDISK) #define fd_enable_irq() enable_irq(IRQ_FLOPPYDISK) static inline int fd_dma_setup(void *data, unsigned int length, unsigned int mode, unsigned long addr) { set_dma_mode(DMA_FLOPPY, mode); __set_dma_addr(DMA_FLOPPY, data); set_dma_count(DMA_FLOPPY, length); virtual_dma_port = addr; enable_dma(DMA_FLOPPY); return 0; } #define fd_dma_setup fd_dma_setup #define fd_request_dma() request_dma(DMA_FLOPPY,"floppy") #define fd_free_dma() free_dma(DMA_FLOPPY) #define fd_disable_dma() disable_dma(DMA_FLOPPY) /* need to clean up dma.h */ #define DMA_FLOPPYDISK DMA_FLOPPY /* Floppy_selects is the list of DOR's to select drive fd * * On initialisation, the floppy list is scanned, and the drives allocated * in the order that they are found. This is done by seeking the drive * to a non-zero track, and then restoring it to track 0. If an error occurs, * then there is no floppy drive present. [to be put back in again] */ static unsigned char floppy_selects[4] = { 0x10, 0x21, 0x23, 0x33 }; #define FDC1 (0x3f0) #define FLOPPY0_TYPE 4 #define FLOPPY1_TYPE 4 #define N_FDC 1 #define N_DRIVE 4 #define CROSS_64KB(a,s) (0) /* * This allows people to reverse the order of * fd0 and fd1, in case their hardware is * strangely connected (as some RiscPCs * and A5000s seem to be). */ static void driveswap(int *ints, int dummy, int dummy2) { swap(floppy_selects[0], floppy_selects[1]); } #define EXTRA_FLOPPY_PARAMS ,{ "driveswap", &driveswap, NULL, 0, 0 } #endif