forked from KolibriOS/kolibrios
disk cache: new 64-bit multi-sector interface for file systems & prefetching in legacy interface
git-svn-id: svn://kolibrios.org@4437 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
9a1dad1ca1
commit
a6e24bafb0
@ -1,6 +1,6 @@
|
|||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; ;;
|
;; ;;
|
||||||
;; Copyright (C) KolibriOS team 2011-2012. All rights reserved. ;;
|
;; Copyright (C) KolibriOS team 2011-2014. All rights reserved. ;;
|
||||||
;; Distributed under terms of the GNU General Public License ;;
|
;; Distributed under terms of the GNU General Public License ;;
|
||||||
;; ;;
|
;; ;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
@ -16,6 +16,7 @@ DISK_STATUS_GENERAL_ERROR = -1; if no other code is suitable
|
|||||||
DISK_STATUS_INVALID_CALL = 1 ; invalid input parameters
|
DISK_STATUS_INVALID_CALL = 1 ; invalid input parameters
|
||||||
DISK_STATUS_NO_MEDIA = 2 ; no media present
|
DISK_STATUS_NO_MEDIA = 2 ; no media present
|
||||||
DISK_STATUS_END_OF_MEDIA = 3 ; end of media while reading/writing data
|
DISK_STATUS_END_OF_MEDIA = 3 ; end of media while reading/writing data
|
||||||
|
DISK_STATUS_NO_MEMORY = 4 ; insufficient memory for driver operation
|
||||||
; Driver flags. Represent bits in DISK.DriverFlags.
|
; Driver flags. Represent bits in DISK.DriverFlags.
|
||||||
DISK_NO_INSERT_NOTIFICATION = 1
|
DISK_NO_INSERT_NOTIFICATION = 1
|
||||||
; Media flags. Represent bits in DISKMEDIAINFO.Flags.
|
; Media flags. Represent bits in DISKMEDIAINFO.Flags.
|
||||||
@ -101,8 +102,6 @@ ends
|
|||||||
; there are two distinct caches for a disk, one for "system" data,and the other
|
; there are two distinct caches for a disk, one for "system" data,and the other
|
||||||
; for "application" data.
|
; for "application" data.
|
||||||
struct DISKCACHE
|
struct DISKCACHE
|
||||||
mutex MUTEX
|
|
||||||
; Lock to protect the cache.
|
|
||||||
; The following fields are inherited from data32.inc:cache_ideX.
|
; The following fields are inherited from data32.inc:cache_ideX.
|
||||||
pointer dd ?
|
pointer dd ?
|
||||||
data_size dd ? ; unused
|
data_size dd ? ; unused
|
||||||
@ -169,6 +168,8 @@ struct DISK
|
|||||||
; Pointer to array of .NumPartitions pointers to PARTITION structures.
|
; Pointer to array of .NumPartitions pointers to PARTITION structures.
|
||||||
cache_size dd ?
|
cache_size dd ?
|
||||||
; inherited from cache_ideX_size
|
; inherited from cache_ideX_size
|
||||||
|
CacheLock MUTEX
|
||||||
|
; Lock to protect both caches.
|
||||||
SysCache DISKCACHE
|
SysCache DISKCACHE
|
||||||
AppCache DISKCACHE
|
AppCache DISKCACHE
|
||||||
; Two caches for the disk.
|
; Two caches for the disk.
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user