home *** CD-ROM | disk | FTP | other *** search
- ;/************************************************************************/
- ;/* Linux partition filter. */
- ;/* (C) Copyright Deon van der Westhuysen, July 1995. */
- ;/* */
- ;/* Dedicated to Jesus Christ, my Lord and Saviour. */
- ;/* */
- ;/* This program is free software; you can redistribute it and/or modify */
- ;/* it under the terms of the GNU General Public License as published by */
- ;/* the Free Software Foundation; either version 2, or (at your option) */
- ;/* any later version. */
- ;/* */
- ;/* This program is distributed in the hope that it will be useful, */
- ;/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
- ;/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
- ;/* GNU General Public License for more details. */
- ;/* */
- ;/* You should have received a copy of the GNU General Public License */
- ;/* along with this program; if not, write to the Free Software */
- ;/* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
- ;/* */
- ;/* This code is still under development; expect some rough edges. */
- ;/* */
- ;/************************************************************************/
-
- Title E2Header- Device driver header and segment ordering.
-
- locals
- .386P
-
- include reqpkt.inc
- include devcmd.inc
- DRIVER_INIT= 1
-
- DGROUP group _DATA,_BSS
-
- _DATA segment word public 'DATA' use16
- public DevHeader
- DevHeader dd -1 ; Pointer to next driver
- dw 8180h ; Device attributes
- dw offset E2Strategy ; Strategy routine entry point
- dw 0 ; IDC routine entry point
- db 'Ext2Flt$' ; Device name
- db 8 dup (0) ; Reserved
- dd 8 ; Level 3 device drive capabilities
- ; 8= Adapter device driver
- public InitFlags
- InitFlags db 0
-
- _DATA ends
-
- _BSS segment word public 'BSS' use16
- _BSS ends
-
- _TEXT segment byte public 'CODE' use16
-
- assume cs:_TEXT, ds:DGROUP
- extrn _E2Init: near
-
- public E2Strategy
- E2Strategy proc far
- cmp byte ptr es:[bx+ReqCommand],CMDInitBase
- jne short @@BadCommand
- test InitFlags,DRIVER_INIT
- jne short @@BadCommand
- or InitFlags,DRIVER_INIT
- push es
- push bx
- call _E2Init
- add sp,4
- jmp short @@Exit
- @@BadCommand:
- mov word ptr es:[bx+ReqStatus],8103h ; Done, error
- @@Exit:
- retf
- E2Strategy endp
-
- _TEXT ends
-
- end
-