CN1347038A - Method for preparing protective card of PCI hard disk - Google Patents

Method for preparing protective card of PCI hard disk Download PDF

Info

Publication number
CN1347038A
CN1347038A CN 01129658 CN01129658A CN1347038A CN 1347038 A CN1347038 A CN 1347038A CN 01129658 CN01129658 CN 01129658 CN 01129658 A CN01129658 A CN 01129658A CN 1347038 A CN1347038 A CN 1347038A
Authority
CN
China
Prior art keywords
pci
card
hard disk
network interface
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 01129658
Other languages
Chinese (zh)
Other versions
CN1141652C (en
Inventor
刘海全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CNB011296585A priority Critical patent/CN1141652C/en
Publication of CN1347038A publication Critical patent/CN1347038A/en
Application granted granted Critical
Publication of CN1141652C publication Critical patent/CN1141652C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

A method for preparing the hard disk protecting PCI card is characterized by that the first and the second binary PCI codes in network interface controller on a PCI network card are mutually exchanged to exchange the address/data lines AD26 and AD25 with each other and the hard disk protecting program is stored in the bootstrap memory on PCI network card. Its advantages are high feasibility and high safety.

Description

A kind of method of making the PCI hard disk protecting card
The present invention relates to a kind of method for making of the hard disk protecting card that hard disk is protected that in computing machine, uses.
Storer is the vitals of storage data in the computing machine.Hard disk is as the most frequently used external memory storage of computing machine, has the advantages that price is low, capacity big, the storage data for a long time, are not cut off the power supply and influenced, and the warehouse of the Computer Storage data on coming true, existing computing machine do not have the hard disk performance that almost is far from being.Hard disk is normally combined by disk sheet group, various control circuit, opertaing device encapsulation, is a kind of precision equipment, is the important component part of guard of computer to the protection of hard disk.The protection of hard disk is normally finished by software; because the motherboard of computing machine all provides the pci bus interface slot at present; make the hardware carrier of hard disk protecting card as the kernel software of hard disk protection software; not only include the storer of storage core protection software and the storer of the various parameters of storage, also comprise the pci bus interface controller.Yet the complex structure of the pci bus interface controller that traditional hard disk protecting card adopts, cost are extremely expensive, cause the complex structure of hard disk protecting card, and manufacture difficulty is higher, and cost is high.
The object of the present invention is to provide a kind of method of making PCI hard disk protecting card simple, that easily go.
For achieving the above object, the method for making PCI hard disk protecting card provided by the invention comprises:
(1) will be stored in second and first exchange of the PCI base class code of binary mode in the network interface controller on the PCI network interface card;
(2) with in the bootstrap memory (Boot ROM) of hard disk protection procedure stores on the PCI network interface card.
Second and first exchange of described PCI base class code, be that address/data multiplexing line AD26 with the pci bus socket on the address/data multiplexing line AD25 of described network interface controller and the PCI network interface card is connected, the address/data multiplexing line AD25 of the pci bus socket on the address/data multiplexing line AD26 of described network interface controller and the PCI network interface card is connected.
Find out by such scheme; because the present invention is second and first exchange with the PCI base class code in the network interface controller on the PCI network interface card of cheapness; and with in the bootstrap memory of hard disk protection procedure stores on the PCI network interface card; the PCI network interface card of cheapness can be transformed into hard disk protecting card; method is simply effective; especially with second and first exchange of PCI base class code, can exchange by address/data multiplexing line AD26 on will blocking and AD25 and finish.Adopt such scheme; PCI network interface controller on the PCI network interface card can be used as the pci bus interface controller; change has just taken place in the PCI base class code that computer software reads the pci bus interface controller from hard disk protecting card; computer software no longer is used as hard disk protecting card as network interface card; the function of having discarded the related network control of original PCI network interface card although it is so; but do not influence this be stuck in carry out when starting bootstrap memory in the hard disk protection program; therefore, the method for making PCI hard disk protecting card provided by the invention is simple; easily go; security is higher.
The invention will be further described below in conjunction with drawings and Examples.
Fig. 1 is a principle assumption diagram of the present invention;
Fig. 2 is the circuit diagram according to the hard disk protecting card of the inventive method making.
Because the pci card of different manufacturers production may have different functions, " PCI local bus standard " regulation: the PCI plug-in card of different purposes has different identification codes, promptly has different PCI base class codes, with reference to following table.
The base class code Meaning
00h The PCI card that design was produced before the base class code standard was worked out.
01h The mass memory unit controller.
02h Network controller.
03h Display controller.
04h Multimedia equipment.
05h Memory Controller Hub.
06h Bridge device.Such as: the bridge that pci bus is converted to ISA (Industry Standard Architecture) bus.
07h Simple communication controller.Such as: serial communication.
08h The ultimate system peripheral hardware.Such as: with the supporting chipset of CPU.
09h Input equipment.
0Ah Dump station (Docking stations).
0Bh Processor.Such as: CPU.
0Ch Series bus controller.Such as: USB.
0Dh-FEh Keep.
FFh The pci card that does not belong to above-mentioned all classes.
According to last table, if the base class code of pci card storage is 02H, show that this pci card is the PCI network controller, if the base class code of pci card storage is 04H, show that this pci card is the PCI multimedia controller.
" PCI local bus standard " also stipulated: different vendor's design PCI plug-in card that produce, different model has different vendor code (Vendor ID) and device code (DeviceID).Vendor code is globally unique, and for example the vendor code of Intel Company is " 8086 ".
" PCI local bus standard " regulation: the PCI plug-in card must provide " identity and feature " information, and for this reason, each pci card all will provide above-mentioned information by special-purpose " configuration space (ConfigurationSpace) ".With reference to following table.
Byte offset 31 16 15 0 of sense bit
00h Device code (Device ID) Vendor code (Vendor ID)
04h Status word (Status) Command word (Command)
08h Base class code (Base Class Code) Subclass code (Sub class Code) Specified register DLL (dynamic link library) (SRLPI) Revision code (Revision ID)
0Ch The self demarking code of dispatching from the factory (BIST) Head type sign indicating number (Header Type) Latent time (Latency Timer) Cache memory sizes (Cache Line Size)
10h 14h 18h 1Ch 20h 24h Base address register (Base Address Registers)
28h Plug-in card bus configuration district pointer (Cardbus CIS Pointer)
2Ch Subsystem code (Subsystem ID) Subsystem vendor code (Subsystem Vendor ID)
30h Expansion ROM base address (Expansion ROM Base Address)
34h 38h Keep (Reserved)
3Ch Maximum latent time (Max_Lat) The minimum response time (Min_Gnt) Interrupt pin number (Interrup t Pin) Interrupt wire size (Interrupt Line)
Last table explanation be information in the configuration space that provides of a kind of pci card, as can be seen from the table, in the space storage of the byte at side-play amount OBH place is the base class code that identifies different pci cards.
If with 32 I/O (I/O) read-write mode, 4 bytes of promptly each read-write, read effectively " configuration space " data, 1. just can determine has the PCI plug-in card on which PCI slot, 2. it has any function---PCI base class code, 3. it is which manufacturers produce a---vendor code, 4. its product type---device code, 5. and its configuration that need carry out and the computer resource that may take or the like information.
In order to follow " PCI local bus standard " and to have specific function, pci card must have special large scale integrated chip to come complete pci bus interface function and other specific function, and described large scale integrated chip is exactly the pci bus interface controller.
The complexity and the cost of the pci bus interface controller that the pci card of difference in functionality adopts have bigger difference; for example; it is just complicated and expensive more than the pci bus interface controller that is used for the PCI network controller that design is specifically designed to the pci bus interface controller of PCI hard disk protecting card; if can use the low side PCI network interface controller that international IC manufacturer produces in enormous quantities; Realtek RTL8029AS for example; Winbond W89C940F; pci bus interface controller as hard disk protecting card; give up its network control function; with the kernel software of hard disk protection software as its bootstrap memory program Solidification in the bootstrap memory chip, just can obtain cheap PCI hard disk protecting card.But such hard disk protecting card has the PCI base class code of network interface card, though it does not have the network communication control function, only has the function of bootstrap memory, still can be regarded as network interface card by computer system.In addition, the computer BIOS of some version (Basic Input or Output System (BIOS)), its CMOS are provided with one of following three options or three's possible combination:
1, First boot device:LAN (first starting outfit: LAN (Local Area Network))
2, Boot from LAN first:Enable (at first from network startup: allow)
3, PnP 0S Installed:Yes (whether plug and play is installed: be)
For above-mentioned BIOS, if being changed into other, " LAN (Local Area Network) LAN " change " forbidding Disable " into or/and " Yes " changed into " No " or/and will " allow Enable ", computing machine is when starting, and BIOS just can not carry out the program in the bootstrap memory on the network interface card.To adopting the PCI type hard disk protecting card of PCI network interface controller as the pci bus interface controller; this is a fatal technical disadvantages: if the BIOS program in the bootstrap memory on the execute card not; hard disk protecting card will lose or temporarily lose the defencive function to hard disk, and this will cause the ill effect that existing protected data meeting is destroyed even system collapses fully in the hard disk.
A straightforward procedure that addresses the above problem; change the PCI base class code of PCI type hard disk protecting card exactly; allow computer system assert that no longer it is a network interface card; thereby the influence that not be provided with by CMOS; make that the program in the bootstrap memory can be performed on the PCI type hard disk protecting card when computer starting, play a protective role forever.
Consider 02H and two PCI base class of 04H code, wherein the pci card of 02H sign is the PCI network controller, and the pci card of 04H sign is the PCI multimedia equipment.The binary mode of 02H is 0000 0010B, the binary mode of 04H is 0000 0100B, if the above-mentioned base class code right side is risen since 0 the 2nd of counting and the 1st exchange, just can make network controller (network interface card) become multimedia equipment (such as sound card).
Based on top described, the method for making PCI hard disk protecting card provided by the invention, the first step is with second and first exchange of the PCI base class code in the network interface controller that is stored on the PCI network interface card; Second step is in the bootstrap memory (Boot ROM) of hard disk protection procedure stores on the PCI network interface card.
Second and first exchange of described PCI base class code, be that address/data multiplexing line AD26 with the pci bus socket on the address/data multiplexing line AD25 of described network interface controller and the PCI network interface card is connected, the address/data multiplexing line AD25 of the pci bus socket on the address/data multiplexing line AD26 of described network interface controller and the PCI network interface card is connected.With reference to figure 1.PCI hard disk protecting card 1 shown in Figure 1, constitute by the PCI network interface card 1 that contains bootstrap memory 2, network interface controller 3 and pci bus socket 4, wherein, described network interface controller 3, be used to finish the pci bus interface function, and storage is used to identify information such as the base class code, vendor code, product type of network interface card function; Described network interface controller 3 is connected with the PCI slot of computing machine by described pci bus socket 4, is connected with described bootstrap memory 2 by address wire, data line and read-write control line, and described bootstrap memory 2 is used to store the program of carrying out hard disk protection; Because PCI network interface controller 3 inside have the PCI base class code 02h that can not change, therefore, the address/data multiplexing line AD25 of described network interface controller 3 is connected with the address/data multiplexing line AD26 of pci bus socket 4, the address/data multiplexing line AD26 of described network interface controller 3 is connected with the address/data multiplexing line AD25 of pci bus socket 4, makes the address/data multiplexing line AD25 of network interface controller can be connected with AD25 with the address/data multiplexing line AD26 that computer system PCI slot provides respectively by described pci bus socket with AD26.
The above-mentioned model that is used to constitute the PCI network interface card of PCI hard disk protecting card can be any, and the bootstrap memory on the card can be wiped read-write memory EEPROM for ROM (read-only memory) EPROM or electricity, perhaps the Flash storer.
Use method of the present invention and can directly constitute hard disk protecting card by the PCI network interface card; the original network interface card boot that only needs will be stored in the bootstrap memory is replaced by the hard disk protection program, and address/data multiplexing line AD25, the AD26 of described network interface controller be connected respectively with address/data multiplexing line AD26, the AD25 of pci bus socket get final product.Certainly also can constitute with reference to foregoing in the reality according to the PCI network interface card.
Fig. 2 is the circuit diagram of the hard disk protecting card made according to the inventive method, and the model of the bootstrap memory among the figure is 27512, the model of network interface controller is W89C940F, in addition, comprises also among the figure that a model is the EEPROM of NS93C46.Wherein address/data multiplexing line AD25, the AD26 of network interface controller are connected with address/data multiplexing line AD26, the AD25 of pci bus socket respectively.
Adopt such scheme, the PCI base class code in the PCI network interface controller on the hard disk protecting card that computer software reads has just become 04h by 02h, and computer software just no longer is used as hard disk protecting card as network interface card, but is used as multimedia card.
Adopting technical solutions according to the invention, is feasible technically.From this end of computer PCI bus, this connection is without any influence.From this end of PCI type hard disk protecting card; owing to given up the network control function of pci bus interface controller; only used the function of its bootstrap memory; because the address of bootstrap memory is used the 0th to the 17th at most usually; therefore adopt the not influence of address wire of technique scheme to bootstrap memory; for the influence of the data bit in the bootstrap memory, can when program writes bootstrap memory, carry out the decommutation of position in advance and correct.So as the carrier of the kernel software of the hard disk protection software of PCI type hard disk protecting card, this connection is without any negative effect.
From this end of PCI type hard disk protecting card, except that PCI base class code, affected have only following parameters:
1, Device ID (device code), Subsystem ID (subsystem code), Max_Lat (maximum latent time) leave in the external eeprom chip in advance, and the initialize data that can change among the EEPROM is corrected.
2, Cardbus CIS Pointer (plug-in card bus configuration district pointer) is always complete 0, and is unaffected.
3, BIST (self demarking code of dispatching from the factory) is the self-inspection record that dispatches from the factory, and the position 26 and the position of the product by check 25 all are 0, and be unaffected.
4, Base Address Registers (base address storer) is always complete 0, and Expansion ROM Base Address (expansion ROM (read-only memory) base address) is also unaffected as the address.
5, the DEVSEL timing (choice of equipment sequential) of position 26 and position 25 corresponding Status (status word) is generally 01B, and being illustrated on the pci bus is middling speed equipment, becomes 10B now, and expression is a slow devices.Owing to given up the network control function of pci bus interface controller, only used its bootstrap memory function, this variation is without any negative effect.

Claims (2)

1, a kind of method of making the PCI hard disk protecting card comprises:
(1) will be stored in second and first exchange of PCI base class code of binary mode in the network interface controller on the PCI network interface card;
(2) with in the bootstrap memory (Boot ROM) of hard disk protection procedure stores on the PCI network interface card.
2, the method for making PCI hard disk protecting card according to claim 1; it is characterized in that: second and first exchange of described PCI base class code; be that address/data multiplexing line AD26 with the pci bus socket on the address/data multiplexing line AD25 of described network interface controller and the PCI network interface card is connected, the address/data multiplexing line AD25 of the pci bus socket on the address/data multiplexing line AD26 of described network interface controller and the PCI network interface card is connected.
CNB011296585A 2001-06-27 2001-06-27 Method for preparing protective card of PCI hard disk Expired - Fee Related CN1141652C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB011296585A CN1141652C (en) 2001-06-27 2001-06-27 Method for preparing protective card of PCI hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB011296585A CN1141652C (en) 2001-06-27 2001-06-27 Method for preparing protective card of PCI hard disk

Publications (2)

Publication Number Publication Date
CN1347038A true CN1347038A (en) 2002-05-01
CN1141652C CN1141652C (en) 2004-03-10

Family

ID=4669343

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB011296585A Expired - Fee Related CN1141652C (en) 2001-06-27 2001-06-27 Method for preparing protective card of PCI hard disk

Country Status (1)

Country Link
CN (1) CN1141652C (en)

Also Published As

Publication number Publication date
CN1141652C (en) 2004-03-10

Similar Documents

Publication Publication Date Title
US7987438B2 (en) Structure for initializing expansion adapters installed in a computer system having similar expansion adapters
CN100504784C (en) Optional ROM characterization method and device
US6177860B1 (en) Method and economical direct connected apparatus for deploying and tracking computers
US6505263B1 (en) Bus controller operating code in system memory
US8037210B2 (en) Computer and method for directly accessing computer hardware by virtual system
US7873754B2 (en) Structure for option ROM characterization
US5974472A (en) System for detachably connecting memory cards which provide memory specified by predetermined range of addresses registered in list and updating list independent of the I/O operation
CN106990958A (en) A kind of extension element, electronic equipment and startup method
US9058257B2 (en) Persistent block storage attached to memory bus
US20100274999A1 (en) Control system and method for memory
CN110704334B (en) Method, system and equipment for important product data management
CN114816528A (en) Method, device, electronic equipment and medium for accessing register
CN110297726B (en) Computer system with serial presence detection data and memory module control method
CN102207905A (en) System recovery method, storage media controller and storage system
US5928338A (en) Method for providing temporary registers in a local bus device by reusing configuration bits otherwise unused after system reset
US7568061B2 (en) Initializing expansion adapters installed in a computer system having similar expansion adapters
CN1141652C (en) Method for preparing protective card of PCI hard disk
CN2491894Y (en) PCI hard disk protective card
CN203930839U (en) A kind of safeguard protection card for forcing hard disc of computer to start the operating system
CN103164348A (en) Protection method of used internal memory of real-time operating system (RTOS) in multiple systems
CN101398760B (en) Firmware updating system and updating method thereof
US8078793B1 (en) Method, apparatus, and computer-readable medium for storing data on a non-volatile memory device
CN112256465A (en) Method and device for repairing memory bank errors
CN201417408Y (en) Embedded main board
CN1831793A (en) Automatic information loading method of PCI equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee