⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 memory_cs.4

📁 pcmcia source code
💻 4
字号:
.\" Copyright (C) 1998 David A. Hinds -- dahinds@users.sourceforge.net.\" memory_cs.4 1.12 2000/06/12 21:24:48.\".TH MEMORY_CS 4 "2000/06/12 21:24:48" "pcmcia-cs".SH NAMEmemory_cs \- MTD-aware PCMCIA memory card driver.SH SYNOPSIS.B insmod memory_cs.o[\fBpc_debug=\fIn\fR][\fBmem_speed=\fIn\fR][\fBword_width=\fIn\fR][\fBforce_size=\fIn\fR].SH DESCRIPTION\fBMemory_cs\fR is the Card Services driver for PCMCIA memory cards,and also provides direct memory access for other types of cards.  Itprovides character-mode and block-mode for accessing any card'sattribute and common memory address spaces, analogous to\fI/dev/mem\fR.  \fBMemory_cs\fR will allocate a free major devicenumber when it is loaded.  It provides two types of minor devices:"direct" character-mode devices for raw access a card's entire PCMCIAcommon and attribute memory spaces, and "indirect" devices foraccessing specific memory partitions via an appropriate MemoryTechnology Driver.  The bitwise layout of minor device numbers is'ddddxarr'.  'dddd' is the device number, with one card counting asone memory device.  'x' is set if this is a direct-access device, 'a'is set for attribute memory, and 'rr' is the region number (forindirect devices).  When \fBmemory_cs\fR is bound to a card, it willreport its major and minor device numbers to \fBcardmgr\fR(8)..PPThe default memory card initialization script creates characterspecial device files for the direct common memory and attribute memorydevices.  It also creates character special devices for accessing thefirst attribute and common memory partitions, and a block device foraccessing the first common memory partition.  These devices have thefollowing names:.TP.I /dev/mem#cCommon memory direct access, character special device..TP.I /dev/mem#aAttribute memory direct access, character special device..TP.I /dev/mem#c0cCommon memory region 0, character special device..TP.I /dev/mem#c0bCommon memory region 0, block special device..TP.I /dev/mem#a0cAttribute memory region 0, character special device..PPThe block special device for a card's common memory can be used tocreate a filesystem on a card, and the device can be mounted in muchthe same way as a floppy disk.  In some cases, you may need toexplicitly specify the card's capacity when creating a filesystem..PPThe character special devices can be used to read and write arbitrarynumbers of bytes to arbitrary locations.  For devices that need to beexplicitly erased before writing, if a write request is aligned andsized on erase block boundaries for the target memory card, the driverwill erase the target region before writing to the card..PPSince any PCMCIA card can be accessed as a memory card, \fBmemory_cs\fRcan be bound to any card regardless of function, and regardless ofwhat other drivers might also be bound to that card.  For example,this driver can be bound to a card and then used to read out thecontents of the card's attribute memory..SH PARAMETERS.TP.BI pc_debug= nSelects the PCMCIA debugging level.  This parameter is only availableif the module is compiled with debugging enabled.  A non-zero valueenables debugging..TP.BI mem_speed= nSets the access speed of the shared memory window for direct accessdevices, in nanoseconds.  The default is 0 (i.e., no extra waitstates).  Values of up to 1000 are legal..TP.BI word_width= nA flag indicating if direct access devices should be configured for8-bit (if 0) or 16-bit (if 1) transfers.  The default is 1 (16-bit)..TP.BI force_size= nExplicitly specifies the size of a simple SRAM card, skipping thedefault (and sometimes unreliable) size check..SH IOCTLSThese are defined in \fB<pcmcia/memory.h>\fR..TP.B MEMGETINFOThis takes an argument of type \fB(region_info_t\ *)\fR, defined in\fB<pcmcia/bulkmem.h>\fR.  The structure will be filled in with memoryregion information for  this device, such as access speed, erase blocksize, and JEDEC identifiers.  .TP.B MEMERASEThis takes an argument of type \fB(erase_info_t\ *)\fR, specifying theoffset and length of a memory region to be erased..SH AUTHORDavid Hinds \- dahinds@users.sourceforge.net.SH "SEE ALSO"cardmgr(8), pcmcia(5), memory_cb(4).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -